My GTK headers are in [include]/gtk-2.0/,
but the headers refer to themselfes as being in [include]. Can I change this, without moving the files, such as editing some path file?
My GTK headers are in [include]/gtk-2.0/,
but the headers refer to themselfes as being in [include]. Can I change this, without moving the files, such as editing some path file?
Salmon posted this for me awhile ago, sounds like this is what you need.
gcc test.c -I/path/to/myinclude -L/path/to/mylib -lfoo
where
-I adds a directory to the list of dirs where #include <> files are found
-L adds a directory to the list of dirs where .a files are found
-l specifies the name of a library to search ("lib" and ".a" are assumed
YOu can also use LD_LIBRARY_PATH environment variable, but in some situations it is considered bad.
You can edit ld.so.conf to change default paths. But be careful with this and make sure you know what you're doing.
Last edited by rotis23; 08-01-2003 at 06:20 AM.