Mailinglist Archive: opensuse-programming (85 mails)

< Previous Next >
Re: [suse-programming-e] What is the easiest way to downgrade g++?
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Fri, 24 Mar 2006 23:17:28 +0100
  • Message-id: <200603242317.29300.andjoh@xxxxxxxxxx>
On Friday 24 March 2006 22:58, Darrell Cormier wrote:
> I am running SuSE Linux 10.0 which ships with g++ 4.0.2. However, several
> of my programs that were working fine under 3.3.5 will not build under
> 4.0.2. I consistently get the following errors:
> /usr/include/c++/4.0.2/bits/sstream.tcc:112: error: expected unqualified-id
> before '(' token
> /usr/include/c++/4.0.2/bits/sstream.tcc:114: error: expected unqualified-id
> before '(' token
> I would like to downgrade my c++ environment to 3.3.x so I can get back to
> where I was (working!). What is the most direct/quickest way to get back
> where I was? I noticed that 3.3.x is not on the DVD.

This happens at regular intervals and is not related to any particular version
of g++. If you google for the error message you'll see it reported against
multiple versions of it.

The problem doesn't even seem to be in gcc, it seems that something #define:s
min and max before sstream gets parsed, so the std::min and std::max lines

How about saying what it is you're trying to compile, that's where the fix
should be (whatever it is, it shouldn't be #defining those things)

Certified: Yes. Certifiable: of course!
jabber ID: anders@xxxxxxxxxx

< Previous Next >
Follow Ups