0

How would I exactly do this?

Heres what I'm talking about:

src/test.h
src/etc/work.cpp

how can i get src/etc/work.cpp to include src/test.h?

Edited by fellixombc: n/a

2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by fellixombc
0

"../test.h"

Ahh thanks, but I have one last question:

Is there a neater way to set it up? I know in Java, there is a packaging system, but what about C++?

0

Copy the .h into the directory with the code.

Is this really that hard to figure out on your own?

0

Copy the .h into the directory with the code.

Is this really that hard to figure out on your own?

I really never required to do this before, and I need the .h file to stay in src/ folder not the src/etc/ folder (note, src/etc/ is just an example folder)

But thank you for the help. This can be locked/solved.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.