Advertisement

Compiling nehe code!

Started by November 14, 2000 02:18 AM
5 comments, last by Cesco752 24 years ago
I have troubles compiling Nehe code in Visual C++. I''m able to compile it but i''m not able to build the file to execute it. I guess I have to link the file to some sort of lib file, i tried with those said in the tutorial, but they are not enough. Any help would be grateful. Thanks Cesco752
You need to link with opengl32.lib glu32.lib and glaux.lib I think I''m not sure if you need glaux.lib.

My Homepage


Visit my forums
Advertisement
What exactly is your error message? Note: for tutorial 23 you need the Direct X SDK installed, otherwise you get a "can't find dinput.h" error.

You can get DirectX7 libraries and includes here


Edited by - Keermalec on November 14, 2000 7:50:30 AM
This is the kind of error that i get.

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Lesson1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


What''s wrong? Did i have to link something else besides those three libs said in the first reply?
This is the kind of error that i get.

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Lesson1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


What''s wrong? Did i have to link something else besides those three libs said in the first reply?
Make sure you''ve created a Win32 workspace.
Advertisement
Got the solution to your problem here

Don''t use the "default workspace" MSVC++ suggests you use. Make a new workspace choosing Win32 app (and NOT Win32 console). Then add the .cpp file using Project > Add to project > Files. If you use NeHe''s .dsw file you should be OK though...

This topic is closed to new replies.

Advertisement