Hi, thanks, yeah I have the 7.4 version. Originally I've downloaded from Ubuntu app center, but that version didn't even had C++ support.
The messiness - when I added this to the makefile, then everytime I press build, the pch gets recompiled - everytime, even when no changes were made.
So I've made a slight modification "test -s ..compile" so it will compile only if the PCH file doesn't exist yet.
But now, if I make some changes to the headers, then the PCH will not get automatically recompiled, unless I press clean and rebuild.
It currently looks like that:
Code:
# Environment
MKDIR=mkdir
CP=cp
CCADMIN=CCadmin
CXXFLAGS=-m64 -fshort-wchar -fpermissive -ffast-math -ffriend-injection -Wno-int-to-pointer-cast -Wno-invalid-offsetof -g
PATHS=-I.. -I../Libs/PhysX\ 3/extensions -I../Libs/PhysX\ 3/pxtask -I../Libs/PhysX\ 3/geometry -I../Libs/PhysX\ 3/foundation -I../Libs/PhysX\ 3/common -I../Libs/PhysX\ 3/vehicle -I../Libs/PhysX\ 3 -I\;../Libs/libtheora/include -I../Libs/libvorbis/include -I../Libs/libogg/include -I../Libs -I../Libs/Bullet/src
ifeq ($(CONF), Debug)
CXXFLAGS += -DDEBUG
else
CXXFLAGS += -O3
endif
# build
build: .build-post
.build-pre:
@echo Precompiling Headers..
test -s ../stdafx.h.gch || $(COMPILE.cc) $(CXXFLAGS) $(PATHS) ../stdafx.h
@echo Compiling Sources..
# Add your pre 'build' code here...