View Full Version : setting the path for a command-line compile

10-05-2007, 05:51 PM
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

path= 'PATH'+'C:\somedirectory;'

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.

ralph l mayo
10-05-2007, 06:39 PM
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

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum