This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: parse error before `throw'
- From: Ian Lance Taylor <iant at google dot com>
- To: ARH <haghdoost at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 18 Jan 2011 09:40:31 -0800
- Subject: Re: parse error before `throw'
- References: <AANLkTimBi1szHriZ9HXVymJ021LLeo2FoxDzyKpAaDm9@mail.gmail.com> <AANLkTimsJeSFqvwuSPztGqJLGDCdYBc5PpRXwxskEYYi@mail.gmail.com>
ARH <haghdoost@gmail.com> writes:
> I need to compile a package with gcc-2.9 , I have downgrade my gcc
> version from 4.4 to 2.9. The following error appears after
> compilation. It seems that I am using wrong stdio.h file, I have
> installed libstdc++2.10-dev. I will appreciate any help for this
> issue.
I assume you mean gcc 2.95.3.
stdio.h comes from glibc, not from libstdc++ or gcc. It looks like you
have a glibc which your version of gcc can't parse. Use the
--save-temps and look at the .ii file to see what the preprocessed
source code looks like. Perhaps that will suggest something.
Or downgrade your glibc as well.
Ian