I think this should be added to Dev-C++. You can choose
one of your header files in the build settings and it
is (re)build with the source files in the "object
files" directory which is then added to the include
directories so that the .gch file will be automatically
found by the compiler.
Logged In: YES
user_id=609236
on this page:
http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html
it says:
"To create a precompiled header file, simply compile it as
you would any other file, if necessary using the -x option
to make the driver treat it as a C or C++ header file."
"For instance, if you have #include "all.h", and you have
all.h.gch in the same directory as all.h, then the
precompiled header file will be used if possible, and the
original header will be used otherwise."
I'm not sure what would you need from the gui, but it seems
like you can basically precomile all the headers on your
own, and the gui will use them as the makefiles don't need
to change. On top of it at this point (3.4.2) this feature
of gcc is still buggy
Logged In: YES
user_id=644683
PCH can be achieved by including a user makefile in
Project Options dialog. But it would be great to see Dev-C++
supports it directly.
In versions til 4.9.9.2, if a .h file is included in a
project, settings of this .h file are all disabled in Files
tab in Project Options. It would be great to let us
check/uncheck Include in compilation and Compile as C++.
BTW, here is a custom makefile to get PCH:
gch.mak:
all-before: all.h.gch
all.h.gch: all.h
$(CPP) -c all.h $(CXXFLAGS)
Simply put all large headers in all.h.
Logged In: YES
user_id=609236
https://sourceforge.net/tracker/index.php?func=detail&aid=1218107&group_id=10639&atid=360639
is a duplicate of this request