News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Bug when using 'flat objects' on precompiled headers?

Started by olipfei, January 28, 2011, 09:48:02 PM

Previous topic - Next topic

olipfei

Hello,

I think I found a bug when using 'flat objects' in combination with precompiled headers. Motivated by this thread http://forums.next.codeblocks.org/index.php/topic,13818.0.html and seeing some bug related to it fixed in r6900 http://forums.next.codeblocks.org/index.php/topic,13896.0.html, I was giving flat objects a try in my own projects (where I don't use precompiled headers). However, with this setting on, compilation of CB's sources unfortunately fails at the beginning of target 'sdk' with the message

Quotemingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE=0  -DEXPORT_LIB -DEXPORT_EVENTS -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=0 -DWXMAKINGDLL_SCI    -IC:\Programme\wxMSW\include -IC:\Programme\wxMSW\contrib\include -IC:\Programme\wxMSW\lib\gcc_dll\msw -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\tinyxml -Iinclude\scripting\bindings -Iinclude\scripting\include -Iinclude\scripting\sqplus -Iinclude\mozilla_chardet -Isdk\wxpropgrid\include  -c S:\Internet\codeblocks\trunk\src\include\sdk_precomp.h -o
mingw32-g++.exe: argument to '-o' missing

Without 'Use flat objects' checked in 'Advanced compiler options' everything works fine. It occurs in CB 10.05 and r6906, but looking at the svn log I don't think it has been fixed in the meanwhile.

Regards,
Oliver


Jenna

I can confirm it, and what's more, C::B still creates empty, unneeded directories. Maybe I missed to commit a part in r6874.
I look into it.

Jenna


olipfei

Thank you, creation of precompiled headers in compilation of CB now woks in r6943 with 'Use flat objects' on. Also, the unneeded empty directories (as described in the first above mentioned thread) are not created any more (at least in my project layout).

Regards,
Oliver