Author Topic: wx_pch.h problem/warnings  (Read 3473 times)

Offline nacitar

  • Multiple posting newcomer
  • *
  • Posts: 27
wx_pch.h problem/warnings
« 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?
Jacob McIntosh - Software Developer

Offline nacitar

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: wx_pch.h problem/warnings
« Reply #1 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.
Jacob McIntosh - Software Developer

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9493
Re: wx_pch.h problem/warnings
« Reply #2 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.
« Last Edit: February 22, 2006, 08:21:20 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: wx_pch.h problem/warnings
« Reply #3 on: February 22, 2006, 08:42:36 am »
Precompiled headers currently are only supported for GCC...
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9493
Re: wx_pch.h problem/warnings
« Reply #4 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:
« Last Edit: February 22, 2006, 09:11:30 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline nacitar

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: wx_pch.h problem/warnings
« Reply #5 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.
Jacob McIntosh - Software Developer