Re: Compile errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux