Code::Blocks Forums

User forums => Help => Topic started by: nacitar on February 22, 2006, 03:10:13 am

Title: wx_pch.h problem/warnings
Post by: nacitar on February 22, 2006, 03:10:13 am
I absolutely must figure out why this is happening, the program works without it for now, but this error needs to go away, i have no idea how to fix it.  I'm using the february 21 2006 nightly and using the VC Toolkit 2003.  Here is my error...

-------------- Build: default in wxTester ---------------
cl.exe /nologo /MD /GA /GX /O1 /DNDEBUG /DWIN32 /D_WINDOWS /DWINVER=0x400 /D_MT /DwxUSE_GUI=1 /GX  /IC:\Dev\wxWidgets-2.6.2\include /IC:\Dev\wxWidgets-2.6.2\lib\vc_lib\CodeBlocks\msw /IC:\Dev\wxWidgets-2.6.2\contrib\include /IC:\Dev\VCToolkit2003\include /IC:\Dev\PlatformSDK2003SP1\Include /IC:\Dev\DotNetSDK\v2.0\include /IC:\Dev\DirectXSDK\Include  /c wx_pch.h /Fowx_pch.h.gch\default_wx_pch.h.gch
cl : Command line warning D4024 : unrecognized source file type 'wx_pch.h', object file assumed
cl : Command line warning D4027 : source file 'wx_pch.h' ignored
cl : Command line warning D4021 : no action performed


Why am i getting that?  the wx_pch.h file is there, and the wx_pch.h.gch folder is being created, but the .gch file itself is not.  What might my problem be?
Title: Re: wx_pch.h problem/warnings
Post by: nacitar on February 22, 2006, 04:06:44 am
forgot to mention, this was made with the static lib option for wxwidgets application template, made just to test things out... I also added a few windows libs to make it happy.
Title: Re: wx_pch.h problem/warnings
Post by: MortenMacFly on February 22, 2006, 08:16:41 am
forgot to mention, this was made with the static lib option for wxwidgets application template, made just to test things out... I also added a few windows libs to make it happy.
Try not to use "precompiled headers" (PCH) - to be found on the project setup - with a Microsoft compiler/linker.
Morten.
Title: Re: wx_pch.h problem/warnings
Post by: mandrav on February 22, 2006, 08:42:36 am
Precompiled headers currently are only supported for GCC...
Title: Re: wx_pch.h problem/warnings
Post by: MortenMacFly on February 22, 2006, 09:06:09 am
Precompiled headers currently are only supported for GCC...
...that's what I actually tried to say, too. :lol:
Title: Re: wx_pch.h problem/warnings
Post by: nacitar on February 22, 2006, 04:07:10 pm
Ah, that explains it.  No worries :).  Thanks for the quick reply, I just wanted to know _why_ I got that message so that I could adjust.  CodeBlocks is seeming to be rather nice so far.