| | |
Header FileS in Other Directories
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2005
Posts: 8
Reputation:
Solved Threads: 0
I'm using a set of classes with lots of *.h files. These files are located in a separate directory & I do not want to copy them to my own folder. I can add the path of the *.h file I use in the #include. However if that *.h file refers to another *.h file then I must change lots of #include.
BTW, I prefer not to use a makefile & do something only within *.c & *.h files :cheesy:
BTW, I prefer not to use a makefile & do something only within *.c & *.h files :cheesy:
The best answer is to use a makefile/IDE. If you don't want to, yes, it is a lot of editing. That is precisely why you generally don't specify a path on the #include line and instead point the compiler at where to look.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
•
•
Join Date: Jun 2005
Posts: 8
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Dave Sinkula
The best answer is to use a makefile/IDE. If you don't want to, yes, it is a lot of editing. That is precisely why you generally don't specify a path on the #include line and instead point the compiler at where to look.
OK, then How can I use makefile on MAC?
Does your compiler have any documentation? If you let us know what compiler you have we can all Google for this information.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
![]() |
Similar Threads
- functions in header files (C++)
- Working with header files ??? (C)
- Header files (C++)
- Header FIles (C++)
- compile header file (C++)
- c vs h header files... (C)
Other Threads in the C Forum
- Previous Thread: ListView Doubt ?
- Next Thread: Passing Class Objects, Instances
Views: 1525 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C
* adobe api append array arrays bash binarysearch char character cm copyanyfile copypdffile createcopyoffile createprocess() csyntax directory drawing dynamic executable execv feet fgets file floatingpointvalidation fork frequency function getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux highest homework i/o ide infiniteloop initialization interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list lowest matrix meter microsoft mqqueue multi mysql oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scheduling segmentationfault send single socketprogramming spoonfeeding stack standard strchr string student suggestions system test testautomation unix urboc user whythiscodecausesegmentationfault win32 win32api windows.h






