Compiling nehe code!
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
My Homepage
Visit my forums
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
You can get DirectX7 libraries and includes here
Edited by - Keermalec on November 14, 2000 7:50:30 AM
November 14, 2000 12:23 PM
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?
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?
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?
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...
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
Popular Topics
Advertisement