User forums > Using Code::Blocks
[SOLVED] Adding class by wizard causes 'undefined reference to WinMain@16'
(1/1)
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:
--- 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'
--- End quote ---
I think it is a bug.
oBFusCATed:
Yes it is a bug. Can you try to reproduce it in the latest nightly?
qtreez:
What you mean by asking? Check whether that bug exist in latest nightly? Or try to repair it?
oBFusCATed:
Install latest night build and try to get the same bug.
qtreez:
Problem does not exist.
Thanks.
Navigation
[0] Message Index
Go to full version