Author Topic: Precompiled headers for wxWidgets 2.8.12  (Read 4370 times)

Offline VonZorch

  • Single posting newcomer
  • *
  • Posts: 4
Precompiled headers for wxWidgets 2.8.12
« 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7667
    • My Best Post
Re: Precompiled headers for wxWidgets 2.8.12
« Reply #1 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.
 
« Last Edit: June 15, 2014, 02:34:51 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7667
    • My Best Post
Re: Precompiled headers for wxWidgets 2.8.12
« Reply #2 on: June 15, 2014, 02:33:44 pm »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org