Precompile processing of source files [message #136450] |
Tue, 25 January 2005 20:15  |
Eclipse User |
|
|
|
Originally posted by: barthome1.comcast.net
Hello,
Microsoft VC6 has a feature called "custom build" where you can massage the
source code, like running is through a batch file to filter the code, before
running the output file through the compiler. Is there a similar feature in
the CDT?
Thanks,
Bart
barthome1@comcast.net
|
|
|
Re: Precompile processing of source files [message #136460 is a reply to message #136450] |
Tue, 25 January 2005 22:52  |
Eclipse User |
|
|
|
Originally posted by: guardia.sympatico.ca
Bart Torbert wrote:
> Hello,
>
> Microsoft VC6 has a feature called "custom build" where you can massage the
> source code, like running is through a batch file to filter the code, before
> running the output file through the compiler. Is there a similar feature in
> the CDT?
>
Hello,
There is no feature directly in CDT, but precompiled header files are
pretty easy to manage with GCC.. you can easily make a custom builder
for that in CDT. If you have a header file, say precomp.h, you execute
gcc like so:
gcc <all the include paths> -oprecomp.h.gch precomp.h
And leave this .gch file where precomp.h is and tadam. Everytime you
#include "precomp.h", gcc will use precomp.h.gch instead.
|
|
|
Powered by
FUDForum. Page generated in 1.09953 seconds