tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GCC g++ 4.4.7 does not accept -std=c++03

"Sijmen J. Mulder" <> writes:

> Ryo ONODERA <> wrote:
>> g++ from GCC 4.4.7 does not accept -std=c++03 option.
>> It accepts only -std=c++0x and -std=gnu++0x.
>> CentOS 6.10 has GCC 4.4.7 and packages with -std=c++03 fail
>> with 'cc1plus: error: unrecognized command line option "-std=c++03"'
>> error.
> This is an ongoing issue, with the most recent thread being:
> There's a wiki page:
> The quick fix, which isn't, is to set GCC_REQD=5 but then if another
> package uses the library it'll fail to link if it's compiled with an
> older compiler. This happened with print/popplar.
> There have been patches with structural fixes.

All true, but Ryo's issue is different.  4.4.7 should be entirely
capable of building c++03.  But, it objects to -std=c++03.  Later gcc
accepts that.

I agree that using a more modern compiler is a workaround for the
4.4.7/std issue.

Home | Main Index | Thread Index | Old Index