View Full Version : GLUT in Windows 95

08-04-2002, 05:42 PM
I try to use GLUT in my project, but a linker error occurs:

C:\DEV-C_~1\LIB\\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16'

Can anyone help me?

08-04-2002, 05:52 PM
sounds like the problem of trying to link a 'console' app as a 'windows' app or vice versa(console app uses main as the entry point while windows app uses winmain as the entry point).i am not sure what compiler you are using so i cant tell you how to fix it. but you definitely want to check your settings

[This message has been edited by owcs (edited 08-04-2002).]

08-04-2002, 06:12 PM
It appears you are using Dev-C++ as your compiler. I may be wrong, but I believe that the -mwindows command line option tells that to use WinMain() as the entry point instead of main(). Try removing that option from the command line settings for the project. (Sorry... I just tried Dev-C++ once and I don't remember where exactly that was.)