Archived

This topic is now archived and is closed to further replies.

choesh

newbie... please help....

Recommended Posts

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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites