newbie... please help....
I was trying to use Glut in visual studio .net
I downloaded the glut, and copy the header files, dll and lib files into everywhere(system,system32, vc7/include, vc7/lib...)
and my first line of code was
#pragma comment(lib, "glut.lib")
#include <gl\glut.h>
and I get
"tutorial1 error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup" error.
It worked fine in visual studio 6.0, but not in .net. I can''t find the link tab in .net. Did anybody have any problem using glut in .net ? Please let me know..
Thank you.
choesh
choesh
I have the same problem with SDL
I assume you have your code in the function void Main();
You can fix it like this:
Just add this code, after your Main()
[edited by - Raduprv on November 1, 2002 4:33:43 PM]
I assume you have your code in the function void Main();
You can fix it like this:
Just add this code, after your Main()
int STDCALL WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow){Main(); return 0;}
[edited by - Raduprv on November 1, 2002 4:33:43 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement