-
starting opengl
I'm having a little trouble getting opengl to work with visual c++ 6.0. I made sure to link the correct files under project->settings. I also went checked through the folders and made sure all the libraries and header files were in place. But, whenever I compile something short like:
Code:
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library
I get the errors:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/opengl test.exe : fatal error LNK1120: 1 unresolved externals
Anyone have any idea what these errors mean? I tried searching for them, but came up with nothing.
-
Did you create a new windows application? (as opposed to a console app)
-
I think this means that the compiler is looking for int main and instead finds WinMain. Double check that you aren't making a console project.
-
Oh, thanks, its working now. I had selected win32 app, but had chosen to load an empty project and didn't have any winmain.
Thanks again.