Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: VonZorch on June 15, 2014, 05:21:47 am

Title: Precompiled headers for wxWidgets 2.8.12
Post by: VonZorch on June 15, 2014, 05:21:47 am
I have a project that compiles but takes a very long time.  As I have written very little code, it appears that this is because thw wxWidgets headers are being compiled every time.
The PCH option is set to generate alongside header, but no compiled headers are saved.
I am able to write to the wx-2.8 directory and its sub directory.
This is on LinuxMint 17 with Code::Blocks 13.12.
The wxWidgets project from the templates directory is an empty project.
Is it possible to precompile these headers, and if so, how?
Title: Re: Precompiled headers for wxWidgets 2.8.12
Post by: stahta01 on June 15, 2014, 01:03:58 pm
The PCH option is set to generate alongside header, but no compiled headers are saved.

Add the PCH header to your CB project; set the header to be compiled by CB.
(Note: Till you write more code Compiling the PCH header might take more time than it saves.)

Which of the three PCH options that work best varies based on your idea of best.

I like in the object folder best. Edit: Windows/MinGW GCC does NOT like the other two as well.

Tim S.
 
Title: Re: Precompiled headers for wxWidgets 2.8.12
Post by: stahta01 on June 15, 2014, 02:33:44 pm
If it still does NOT work correctly post a full re-build log.

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

Tim S.