News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[SOLVED] Adding class by wizard causes 'undefined reference to WinMain@16'

Started by qtreez, March 19, 2015, 07:46:26 PM

Previous topic - Next topic

qtreez

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:

Quotemingw32-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.

oBFusCATed

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!]

qtreez

What you mean by asking? Check whether that bug exist in latest nightly? Or  try to repair it?

oBFusCATed

(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!]

qtreez