Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-05-2007, 06:51 PM #1
setting the path for a command-line compile
I am working on a windows XP system. I am doing a command line compile and link using a makefile. It works except for the fact that it cannot find some header files.
It has been a long time since I have done this sort of build. I remember that the path a compiler uses to find a header file is determined by the "Path" that you see when you type "path" on the command line.
How do you add a new path to the "path"on the command line? Isn't this what we need to do if the compiler cannot find a header file?
I think it is
or something like that or maybe you have to put a dollar sign in front of the path. I need to do this just right or else I might wipe out the path string.
10-05-2007, 07:39 PM #2
Look at your compiler command-line flags documentation. For gcc you can pass -I/somepath/ -I/someotherpath/ -I/etc/etc/etc, which is preferable to messing with the environment