SFML community forums
Help => General => Topic started by: S_BISHOP on January 21, 2019, 09:28:10 am
-
I recently discovered the concept of using a precompiled header within a large project, to speed up compile time for those system headers that do not change.
I am now attempting to add to my own project, my question, is this the correct syntax ? or is there something more i have to add, for it to be marked and recognized as a pch.h ?
In code blocks clicking on the this header file and then clicking properties ive checked the file to be Compiled but purposely did not check the file to be linked, is it a pch now ? , is it meant to compile faster as i have it above, i honestly have no idea.
thanks
#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
-
This has really nothing to do with SFML. There are other places that would be more relevant for this kind of question (stackoverflow, etc.), here we try to focus on SFML itself ;)