This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error with g++ of gcc3.1 (urgently need help)


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]