Advertisement

newbie... please help....

Started by October 31, 2002 10:02 PM
1 comment, last by choesh 22 years, 4 months ago
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()

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]
Advertisement
^^ thank you~!!!

choesh
choesh

This topic is closed to new replies.

Advertisement