Code::Blocks Forums

User forums => Help => Topic started by: Jamesff on April 25, 2011, 09:50:05 am

Title: MinGW problem
Post 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).
Title: Re: MinGW problem
Post by: xunxun on April 25, 2011, 02:53:14 pm
Did you set a console or GUI application?
Title: Re: MinGW problem
Post by: Jamesff on April 25, 2011, 07:55:37 pm
How do I do that?
Title: Re: MinGW problem
Post by: oBFusCATed on April 25, 2011, 09:53:13 pm
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...
Title: Re: MinGW problem
Post by: benkenobi01 on April 25, 2011, 11:18:12 pm
show your code, this can be due just because of the lack of main()