This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compile errors
- From: Parms singh <list_track at yahoo dot com>
- To: Eljay Love-Jensen <eljay at adobe dot com>, corey taylor <corey dot taylor at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 28 Mar 2005 14:51:48 -0800 (PST)
- Subject: Re: Compile errors
Hello Eljay,
Thanks a bunch for catching the namespace problem.
I went back to using hash_map.h, which gives me a
couple of warnings for using deprecated headers (I can
live with that), but I can't correct one error. This
comes from
In file included from
/usr/include/c++/3.2.2/backward/hash_map.h:60,
from qd.h:71,
from qd.cc:68:
/usr/include/c++/3.2.2/backward/algobase.h:68: `swap'
is already declared in this scope
If I can get rid of this, I am done.
thanks again
Parms
--- Eljay Love-Jensen <eljay@adobe.com> wrote:
> Hi Parms,
>
> I think hash is in __gnu_cxx namespace.
>
> Try this instead:
> using __gnu_cxx::hash;
>
> Also, I suggest you do not put using statements in
> your header files. Bad mojo.
>
> --Eljay
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com