User forums > Help

MinGW problem

(1/1)

Jamesff:
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).

xunxun:
Did you set a console or GUI application?

Jamesff:
How do I do that?

oBFusCATed:
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...

Navigation

[0] Message Index

Go to full version