News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Precompiled headers for wxWidgets 2.8.12

Started by VonZorch, June 15, 2014, 05:21:47 AM

Previous topic - Next topic

VonZorch

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?

stahta01

#1
Quote from: VonZorch on June 15, 2014, 05:21:47 AM
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]