PDA

View Full Version : command line compile question?



jpummill
03-03-2002, 06:29 AM
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,
jpummill

jpummill
03-03-2002, 06:40 AM
I think I may have solved this. I created an Environment Variable called LIB and now my compile works. http://www.opengl.org/discussion_boards/ubb/smile.gif

Any other suggestions would be appreciated though,
jpummill

DFrey
03-03-2002, 07:49 AM
Just run the vcvars32.bat file when you need to compile from the command line. It creates all the necessary environment variables and paths.

jpummill
03-03-2002, 08:07 AM
Thanks for the information.

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

jpummill