预编译头语法

时间:2019-01-21 07:50:50

标签: c++ codeblocks sfml

我最近发现了在大型项目中使用预编译头的概念,以加快那些不变的系统头的编译时间。

我现在正在尝试将其添加到自己的项目中,这是正确的语法吗?还是我还需要添加一些东西,以便将其标记并识别为pch.h?谢谢

#ifndef PCH_H_INCLUDED
#define PCH_H_INCLUDED

#include <iostream>
#include <fstream>
#include <sstream>
#include <strstream>
#include <chrono>
#include <random>
#include <ctime>
#include <memory>
#include <iterator>
#include <cstdlib>
#include <typeinfo>
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>

#endif // PCH_H_INCLUDED

0 个答案:

没有答案
相关问题