options for compiling C using C++ compiler [trying 1 more time]
Paolo Bonzini
paolo.bonzini@lu.unisi.ch
Thu Dec 15 09:01:00 GMT 2005
> I'm trying to find the best way to minimize the problem via options or
> other ways. I already use "-fpermissive" and this eases it a bit.
>
> Suggestions?
First of all, it's not polite to send things twice just because nobody
answered you.
Second, people on this listcould have as well ignored you because this
is a mailing list for development "of" GCC, not "with" GCC. There's
another list for the latter purpose, which is gcc-help@gcc.gnu.org. To
be clearer, a proper message to this list would be "I would like to
write a unified front-end for C and C++, in order to be able to look at
the .tu dump which right now I can only use with the C++ front-end. Do
you have estimates of the effort needed?" or "I would like to add .tu
dumps to the C front-end. Do you have estimates of the effort needed?"
And even then, an answer would not be guaranteed.
Third, the answer to your question is that the only solution is to write
your code in the intersection of C and C++, which I agree can be hard if
you do not control the code you're running the tool on. -fpermissive
can ease things, but it is not of course a silver bullet.
Paolo
More information about the Gcc
mailing list