As my project is getting bigger and bigger, I am trying to use pre-compile to accelerate build speed. I wrote header/src files like below.
stdwx.h
Code: Select all
#ifndef __STDWX_H__
#define __STDWX_H__
#include "wx/wxprec.h"
#include "wx/grid.h"
#include "wx/xrc/xmlres.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/grid.h"
#endif
#endif // __STDWX_H__ //
Code: Select all
#include "stdwx.h"
I am not sure my way is correct. Or, pre-compiling can not improve the build effciency greatly.
Any idea about it? Or any suggestion about accelerate build speed without change structure of legacy code?
Thanks so much.

PS: I am using VS.Net 2003 as my developing tool.