Eric Botcazou <ebotca...@adacore.com> writes: >> When I configure with >> --enable-build-with-cxx --enable-languages=c,c++,ada >> I get the appended. The problem is that the Ada code is looking for C >> symbol names but the names in the .o files are mangled for C++. > > OK, this is known: a couple of tweaks to the Makefile (to use g++ instead of > gcc to link) are needed and extern "C" must be added all over the place, see: > http://gcc.gnu.org/ml/gcc/2009-06/msg00635.html > > I can post an updated patch if you want, but saying that the Ada front-end > blocks the use of C++ in gcc is unfair; it is (and has always been) neutral.
My apologies, I didn't mean to attack. I tried it, and it failed building Ada. That's all I meant. If there is an up to date patch, I'm happy to review it if it would help. But perhaps an Ada maintainer would prefer to do the review, I don't know what the usual policy is as I've never approved an Ada patch. I have a patch ready to go which would use C++ in stages 2 and 3. I can't propose that patch right now because it fails when building Ada. If we get Ada fixed, I will propose it. Ian