This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compile errors
- From: corey taylor <corey dot taylor at gmail dot com>
- To: Parms singh <list_track at yahoo dot com>
- Cc: Eljay Love-Jensen <eljay at adobe dot com>, gcc-help at gcc dot gnu dot org
- Date: Mon, 28 Mar 2005 18:06:14 -0600
- Subject: Re: Compile errors
- References: <20050329000422.17015.qmail@web61301.mail.yahoo.com>
- Reply-to: corey taylor <corey dot taylor at gmail dot com>
I'm pretty sure that won't fix the error unless the using statements
in the cc file are before where you include the header that uses hash.
You might just try __gnu_cxx::hash<int> in your code instead.
corey
On Mon, 28 Mar 2005 16:04:22 -0800 (PST), Parms singh
<list_track@yahoo.com> wrote:
> Hello Eljay,
>
> Okay, I took your advise and changed the headers
> carefully to the point that they are c++ complaint
> headers.
>
> The only difference between my original posting and
> what I now have is that I have the following line
> after the includes in the cc file:
>
> using namespace std;
> using __gnu_cxx::hash;
>
> I get the exact same errors as my original posting.
>
> Sorry about the bother.
>
> Parms
>
> --- Eljay Love-Jensen <eljay@adobe.com> wrote:
> > Hi Parms,
> >
> > I strongly recommend avoiding <hash_map.h>, and
> > instead recommend <ext/hash_map> which has symbols
> > in the __gnu_cxx namespace.
> >
> > If you do want to use the backward compatibility
> > header files, make sure you do not co-mingle
> > backward compatibility header files with C++
> > compliant header files. I suspect that may cause
> > problems. (For instance, if you use <hash_map.h>,
> > then you should use the non-compliant <iostream.h>
> > and not the C++ compliant <iostream>.)
> >
> > Otherwise you may run into symbol collisions, such
> > as the one you are running into with the swap symbol
> > already being used.
> >
> > HTH,
> > --Eljay
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>