Author Topic: [SOLVED] Adding class by wizard causes 'undefined reference to WinMain@16'  (Read 3705 times)

Offline qtreez

  • Multiple posting newcomer
  • *
  • Posts: 20
I have this problem, but only if I set option 'Add source and header file to the same folder' in wizard.

Here are build logs:

Quote
mingw32-g++.exe -Wall -DCURL_STATICLIB -g -std=c++11 -IC:\lib\curl-7.40.0\curl-7.40.0\include -I -c ...\http.cpp -o obj\Debug\http.o
c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'

I think it is a bug.
« Last Edit: May 23, 2015, 03:02:41 pm by qtreez »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Adding class by wizard causes 'undefined reference to WinMain@16'
« Reply #1 on: March 19, 2015, 08:27:15 pm »
Yes it is a bug. Can you try to reproduce it in the latest nightly?
(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 qtreez

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Adding class by wizard causes 'undefined reference to WinMain@16'
« Reply #2 on: April 01, 2015, 12:07:19 am »
What you mean by asking? Check whether that bug exist in latest nightly? Or  try to repair it?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Adding class by wizard causes 'undefined reference to WinMain@16'
« Reply #3 on: April 01, 2015, 10:42:06 pm »
Install latest night build and try to get the same bug.
(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 qtreez

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Adding class by wizard causes 'undefined reference to WinMain@16'
« Reply #4 on: May 23, 2015, 03:00:06 pm »
Problem does not exist.
Thanks.