compat c++

Ville Skyttä ville.skytta at iki.fi
Tue May 26 18:30:28 UTC 2009


On Tuesday 26 May 2009, Jussi Lehtola wrote:
> On Tue, 2009-05-26 at 17:11 +0200, Christoph Höger wrote:
> > Hi,
> >
> > I was just wondering, if there is a compat c++ compiler package (or
> > mode) available in fedora. The issue I encountered was that I got a lot
> > of compiler errors because of strdup() malloc() etc. usages in c++ files
> > without proper #include <legacy> stuff.
> > I am not a C++ expert, but I guess that there was a default behavior
> > change between g++ 3 and 4.
>
> The best thing to do would of course be patching the code to respect the
> standards, but you can
>
> # yum -y install compat-gcc-34-c++
>
> and use g++34 in the mean time.

...or try if -fpermissive (applied selectively where needed) helps with the 
newer one.




More information about the fedora-devel-list mailing list