Code::Blocks Forums
User forums => Help => Topic started by: Jamesff on April 25, 2011, 09:50:05 am
-
not sure if this is a problem with CodeBLocks or with MinGW, but when I tried to build/run a program, I got this:
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(main.o):main.c|| undefined reference to `WinMain@16'|
The version of MinGW I have came with CodeBlocks 10.05 (the latest version).
-
Did you set a console or GUI application?
-
How do I do that?
-
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Also all the other FAQ entries...
-
show your code, this can be due just because of the lack of main()