Author Topic: MinGW problem  (Read 5366 times)

Offline Jamesff

  • Single posting newcomer
  • *
  • Posts: 2
MinGW problem
« 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).

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: MinGW problem
« Reply #1 on: April 25, 2011, 02:53:14 pm »
Did you set a console or GUI application?
Regards,
xunxun

Offline Jamesff

  • Single posting newcomer
  • *
  • Posts: 2
Re: MinGW problem
« Reply #2 on: April 25, 2011, 07:55:37 pm »
How do I do that?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: MinGW problem
« Reply #3 on: April 25, 2011, 09:53:13 pm »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline benkenobi01

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: MinGW problem
« Reply #4 on: April 25, 2011, 11:18:12 pm »
show your code, this can be due just because of the lack of main()