Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling with custom header files

Status
Not open for further replies.

CJason

Programmer
Oct 13, 2004
223
US
This is probably a pretty simple question...but, please bear with me :)

First, the issue:
I have a lot of .c files that all include a lot of custom .h files. Currently, in order to build my system, all the .h files must be in the same location as the .c files. Ideally, I was hoping that these .h files could reside in a "library" that the compiler could use to make it so the .h files do NOT have to reside in the same directory as the .c files...but, I don't "think" that will work.

Please help:
If someone could give me a list of options of what I can do with not having to have these .h files in the same directory as the .c files, I'd appreciate it!!

Thanks in advance!
 
That depends on which compiler you're using.
If you're using a UNIX make file, there's a path to search for header files. In Visual C++ it's in the Project Settings...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top