Author Topic: Bug when using 'flat objects' on precompiled headers?  (Read 7698 times)

Offline olipfei

  • Multiple posting newcomer
  • *
  • Posts: 26
Bug when using 'flat objects' on precompiled headers?
« on: January 28, 2011, 09:48:02 pm »
Hello,

I think I found a bug when using 'flat objects' in combination with precompiled headers. Motivated by this thread http://forums.codeblocks.org/index.php/topic,13818.0.html and seeing some bug related to it fixed in r6900 http://forums.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

Quote
mingw32-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


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Bug when using 'flat objects' on precompiled headers?
« Reply #1 on: January 29, 2011, 08:08:47 am »
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Bug when using 'flat objects' on precompiled headers?
« Reply #2 on: January 29, 2011, 02:59:02 pm »
Should be fixed in svn r6943 .

Offline olipfei

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: Bug when using 'flat objects' on precompiled headers?
« Reply #3 on: January 29, 2011, 06:13:58 pm »
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