command line compile question?

Hi All,

This is not strictly OpenGL related but I thought someone here might be able to help.

I am trying to compile a simple OpenGL program and I have no problems from within the VC++ IDE but from the command line, I run into include and library errors.

I fixed the include error by setting up an INCLUDE environment variable but I am still getting the following library error:

LINK : fatal error LNK1104: cannot open file “kernel32.lib”

In UNIX, I think that a LD_LIBRARY_PATH variable would solve this but not sure under windows and VC++.

Any help would be appreciated,

I think I may have solved this. I created an Environment Variable called LIB and now my compile works.

Any other suggestions would be appreciated though,

Just run the vcvars32.bat file when you need to compile from the command line. It creates all the necessary environment variables and paths.

Thanks for the information.

I didn’t know about this .bat file. It will make my life a little easier.