This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]