Compile errors
Parms singh
list_track@yahoo.com
Mon Mar 28 22:55:00 GMT 2005
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
More information about the Gcc-help
mailing list