Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Precompile processing of source files
Precompile processing of source files [message #136450] Tue, 25 January 2005 20:15 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Help on graphics-, menues- and buttons-development needed!
Next Topic:Failing to launch debugger in v2.1 RC3
Goto Forum:
  


Current Time: Mon Jul 21 21:51:57 EDT 2025

Powered by FUDForum. Page generated in 0.03632 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top