wxWidget 101 之 2 有效使用預先編繹頭文件 (precompiled header)

stdwxh.h
///
#ifndef STDWXH_H
#define STDWXH_H
#include "wx/wxprec.h"              
#include "wx/notebook.h"            
#include "wx/statline.h"
#include "wx/tglbtn.h"
#include "wx/statusbar.h"

#ifdef _DEBUG
#include <crtdbg.h>
#define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
#else
#define DEBUG_NEW new
#endif

#pragma warning (disable:4089)
#include <map>
#include <vector>

using namespace std;

#endif

stdwxh.cpp
///
#include "stdwxh.h"

將此 stdwxh.h 及 stdwxh.cpp 加入編程計劃
所有配置 -> 創建/使用預編譯頭 = /Yc ->  預編譯頭文件 = $(ConfigurationName)\stdwxh.pch

你可能感兴趣的:(wxWidget 101 之 2 有效使用預先編繹頭文件 (precompiled header))