This is the mail archive of the
mailing list for the GCC project.
Re: ANSI C++ forbids 'const' w/out type
- To: Gabriel dot Dos_Reis at sophia dot inria dot fr (Gabriel Dos_Reis)
- Subject: Re: ANSI C++ forbids 'const' w/out type
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Thu, 18 Nov 99 21:32:48 PST
- Cc: avrysin at ibscorp dot com, gcc at gcc dot gnu dot org
Andy Rysin <email@example.com> writes:
> | Recently tried to compile QT-2.0.2 under Solaris 7 with gcc-2.95 and got
> | errors in /usr/openwin/include/*.h
> | ANSI C++ forbids 'const' w/out type
> | can it be switched off for backward compatibility or shall I switch back
> | to egcs-1.1.2?
> -isystem /usr/openwin/include
The FAQ recommendation is -fpermissive. The problem is that Sun's
X headers are buggy, you can't write
const foo = 2;
in ISO C++.