I checked the wiki and available documentation, and unless I'm misunderstanding... the only thing I have to do is this:
Code: Select all
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
Any help appreciated.
Code: Select all
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
I just checked again to be sure and there are no pch files in any of my project's folders. Do you mean *my* project folder? Or the wx project folder?rodrigod wrote:I use that precompiled header also and you can find it in your intermediate files folder. It is by default in the DEBUG or RELEASE folder under the project folder.
Well I guess this is my question. I didn't create the precompiled header. I'm totally new to this PCH stuff and I haven't been able to find any useful info on it in the wiki here or anything. I posted everything I know about the process to get a precompiled header working in my first post in this thread.rodrigod wrote:How did you create the precompiled header? Did you just use automatic? Have you already compiled your project?
Okay -- this is what I was missing. I see this option in the project settings now. Tinkered with it a bit to generate then use the pch file -- and now I got it working. Compile time cut down dramatically! Excellent.It's better to set your .cpp files to use the precompiled header you want "example.h" and set "example.cpp" to create. you do this on the project settings.
Code: Select all
#include "example.h"