This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ front end


On Tuesday, June 25, 2002, at 09:15  AM, Ben Woodhead wrote:

Hello Everybody

I was wondering if its possible to write a front end in c++ instead of c..
Yes, it is.
It takes a little work at first to clean up a few headers and add some
#ifdef __cplusplus
extern "C" {
#endif

....
#ifdef __cplusplus
}
#endif


but other than that, it works fine.
Also if its possible would it be difficult.. Or would it be best to rewrite
the code to c..
Depends.
How much code?
Thanks, Ben







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]