This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Error with g++ of gcc3.1 (urgently need help)
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: zhoujing at comp dot nus dot edu dot sg
- Cc: gcc at gnu dot org, gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 25 Jun 2002 11:15:21 +0100
- Subject: Re: Error with g++ of gcc3.1 (urgently need help)
- Organization: Codesourcery LLC
- References: <Pine.LNX.4.44.0206251420030.12806-100000@figaro.ddns.comp.nus.edu.sg>
"Tony, Zhou Jingtao" wrote:
> Nevertheless, when I upgraded it to gcc3.1, and tried compiling it again with g++, it gives me the following errors:
>
> In file included from /usr/local/include/g++-v3/fstream:48,
> from read.cpp:2:
> /usr/local/include/g++-v3/bits/basic_file.h:52: parse error before `{' token
I had this happen to me too. I think some header files got moved/renamed
or something. If you look in your /usr/local/include/g++-v3/**
hierarchy you'll see two sets of header file dates. One more recent, which
correspond to the time you installed 3.1, and one older set of dates, which
are hold overs from 3.0 or earlier. You need to delete all the older files.
With zsh it's something like
rm /usr/local/include/g++-v3/**/*(m+10)
to delete everything modified more than 10 days ago (adjust to what is
applicable to your situation)
Alternatively you could rm -rf the g++-v3 dir and then reinstall.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org