Thanks, but I saw that before. I'm looking for a simple g++ command line solution that I could simply paste into Eclipse properties. Also I only have the *.pch nothing else.
Paul Bußmann Messages: 17 Registered: October 2012
Junior Member
The *.pch should only be created if the headers have changed, so I'd created a Makefile (precompiled.mk) for this purpose and add "make -f precompiled.mk" pre-build-command (only if the performance gain from the precompiled headers is more than you suffer from an additional make-invocation).
Would be cool to have a way to define generation rules for derived files and for sure, especially support for telling CDT to create and automatically update pch-files.
I'm not very experienced, so I wonder why I should bother about precompiled at all? Will the app run faster or only the compilation?
The file looks as below. How could I include that as normal header?
Many thanks
------------
/*
* stable.pch
* ToolSDL
*
* Created by Seb on 03/01/06.
* Copyright 2006 The Old Game Factory. All rights reserved.
*
*/
#ifdef __cplusplus
#ifndef __STABLE_PCH__
#define __STABLE_PCH__
///////////////////////////////////////////
// Standard headers
using std::istream;
using std::ostream;
using std::ifstream;
using std::ios;
using std::flush;
using std::endl;
using std::cout;
using std::string;
using std::vector;
using std::map;
using std::numeric_limits;
using std::fill;
//////////////////////
// API headers
#include "OpenGL/glu.h" // Mac OS X OpenGL header location
//#include "GL/glu.h" // Other platforms OpenGL header location
#include "SDL.h"