C++ front end

Daniel Berlin dberlin@dberlin.org
Tue Jun 25 06:50:00 GMT 2002


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
>



More information about the Gcc mailing list