Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: qtreez on March 19, 2015, 07:46:26 pm

Title: [SOLVED] Adding class by wizard causes 'undefined reference to WinMain@16'
Post by: qtreez on March 19, 2015, 07:46:26 pm
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.
Title: Re: Adding class by wizard causes 'undefined reference to WinMain@16'
Post by: oBFusCATed on March 19, 2015, 08:27:15 pm
Yes it is a bug. Can you try to reproduce it in the latest nightly?
Title: Re: Adding class by wizard causes 'undefined reference to WinMain@16'
Post by: qtreez 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?
Title: Re: Adding class by wizard causes 'undefined reference to WinMain@16'
Post by: oBFusCATed on April 01, 2015, 10:42:06 pm
Install latest night build and try to get the same bug.
Title: Re: Adding class by wizard causes 'undefined reference to WinMain@16'
Post by: qtreez on May 23, 2015, 03:00:06 pm
Problem does not exist.
Thanks.