include dirs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Adek336

include dirs

Post by Adek336 »

hi how can I tell g++ the include files are in some other directory?

Cheers,
Adrian.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:include dirs

Post by Solar »

gcc manual, chapter 3.11 "Options Controlling the Preprocessor", page 61.

(Hint, hint...)

The option you're looking for is -I.
Every good solution is obvious once you've found it.
Adek336

Re:include dirs

Post by Adek336 »

Thank you! That will allow me to divide my files into directories.
gcc manual, chapter 3.11
Ah, so there is one. I'll try to use it, I hope it will be easy.

Thanx,
Adrian.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:include dirs

Post by Solar »

Adek336 wrote:
gcc manual, chapter 3.11
Ah, so there is one.
http://www.gnu.org/manual/manual.html
Every good solution is obvious once you've found it.
Post Reply