source codes from different directories
Hello,
I try to combine the source code of two big c projects (with hundreds of files each). The c files have to remain in their directories. But how to invoke c code from other directories, is there a simple way to define that (at a certain point) the functions are to find in a completly different directory? |
Typically the way you do this is by having include directories with the apporiate includes and adding them to the compile command (-I/blah/include) and when you need to link to object files together simply add the .o files to the compile command as well.
|
ooh, right! That might help :) I forgot about that, thanks!
|
Quote:
Code:
gcc foo1.c foo2.o ... |
anyone?
|
Quote:
|
All times are GMT -5. The time now is 08:05 PM. |