User forums > Using Code::Blocks

How to change path of wx_pch.h.gch?

(1/2) > >>

blockn102:
How to change path of wx_pch.h.gch?


--- Code: ---Project\wx_pch.h.gch\Debug_wx_pch_h_gch
--- End code ---

I want custom path (move to C:\Temp\wxProjects) for easy to share project.

ollydbg:
I have tried to find some option or directory setting to change this default behavior, But I'm sorry, I can't find the method.

But It's useful to change the PCH folder to share with all the wxWidgets projects.

stahta01:
The pre-compiled header has three options were the pch file is saved.

Look under
"Project" -> "properties"
section called "precompilied header" strategy

I used the default option it works good, but not sure any of the options does exactly what you want because I do not understand the problem you wish to fix.

Tim S

ollydbg:
thanks for your reply.
I will restate my question:

Suppose I have two wxWigets project ,say  projectA and projectB.
I wonder whether these two projects can share the same PCH output files.
By default. the PCH output is located in projectA\wx_pch.h.gch and projectB\wx_pch.h.gch, so I want to set them to the same path to save disk space and compiling time.

Thanks again!

stahta01:
And, the reason you can not move the wx_pch.h to an common folder is what?
Or did you not try that?

The wx_pch.h determines the PCH file locations in 2 of the 3 settings.
Note: PCH means pre-complied header is this case called wx_pch.h.gch

Note: I do not use the header wx_pch.h file myself so not sure what it contains.
I use the <wx/wxprec.h> directly.

Tim S

Navigation

[0] Message Index

[#] Next page

Go to full version