sean717
03-18-2003, 10:27 AM
I'm tring to compile my first opengl program
using VC++6 in WINXP,I created a project in VC++ and added all the libs for opengl to that project,then I wrote a really simple program:
#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glaux.h>
int main(int argc, char** argv)
{
auxInitDisplayMode (AUX_SINGLE | AUX_RGBA);
auxInitPosition (0, 0, 500, 500);
auxInitWindow (argv[0]);
}
then I got following error msg:
--------------------Configuration: tryopengl - Win32 Debug--------------------
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/tryopengl.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
tryopengl.exe - 2 error(s), 0 warning(s)
can anybody explain why this happens?Thanks
using VC++6 in WINXP,I created a project in VC++ and added all the libs for opengl to that project,then I wrote a really simple program:
#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glaux.h>
int main(int argc, char** argv)
{
auxInitDisplayMode (AUX_SINGLE | AUX_RGBA);
auxInitPosition (0, 0, 500, 500);
auxInitWindow (argv[0]);
}
then I got following error msg:
--------------------Configuration: tryopengl - Win32 Debug--------------------
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/tryopengl.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
tryopengl.exe - 2 error(s), 0 warning(s)
can anybody explain why this happens?Thanks