Error linking Opengl tutorials
I''m using VC++ 6.0 and when I compile nehe tutorial I always get that error :
Linking...
LINK : fatal error LNK1104: cannot open file "and.obj"
Error executing link.exe.
Help?
Freaky. Is there a source file in the project named and.[c/cpp]? Are you sure you downloaded the project file for VC?
Didn''t someone else have this same problem recently? Anyway, check to make sure you didn''t do something like type "lesson5.cpp and requiredstuff.cpp". If so just remove the "and" and leave a space between the two filenames.
_____________________________
And the Phoenix shall rise from the ashes...
--Thunder_Hawk -- ¦þ
______________________________
_____________________________
And the Phoenix shall rise from the ashes...
--Thunder_Hawk -- ¦þ
______________________________
I rebooted my comp and the "and" error isn''t here anymore.
But I still get an error
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Lesson1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
But I still get an error
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Lesson1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
what are you using for your windowing? SDL, win32, glut? If you are using glut, or sdl, you need to make your project a console app. To change an app''s type from your project, go to project/settings/link, go down to project options, find where it says subsytem:windows and change it to console. If you are using SDL, then you need to make sure you have it as a multithreaded dll and have SDLmain.lib and SDL.lib linked. If you are using the windows api, it needs to be a windows application. What are you using?
For now, i''m only trying to run the first opengl tutorial, I opened the file, linked things and try to run it. I use VC++ 6.0 and downloaded the project for it. I linked the OpenGL32.lib GLu32.lib, GLaux.lib.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement