Advertisement

error??

Started by April 05, 2002 12:29 AM
3 comments, last by DarkHunter 22 years, 10 months ago
Ever since i read the thread on glut in windows i started to look into going back to glut. so i downloaded all the crap, installed, and im set to go. I figure i mine as well compile some old crap i downloaded i couldn''t compile before beacuse of glut. And i get this error Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 thats the ONLY error. It just puzzles me as why i got this. Can anybody help me. btw usally you get like 100 errors, this being 1 of them.
You must use WinMain() as your entry point, not main().
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
omg, i dind't even think about that, THANKS!

[edit] only problem with your answer is you have NO idea what your talking aobut. Im using GLUT not windows API. That isn't the problem, and yes i tried it your way, and still got the error, plus a warning about it before linking.

[edited by - DarkHunter on April 5, 2002 1:52:16 AM]
Er, thank you. I have more than a sufficient idea of what I'm talking about. Excuse me for forgetting that GLUT uses an entry point of main() ...

Create a console application instead of a Win32 application. Then your entry point of main() will work.

[edited by - Martee on April 5, 2002 2:05:17 AM]
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
ok thanks, sry for being mean lol

This topic is closed to new replies.

Advertisement