This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Errors which may be related to hash_map
- From: Zahra-A <zhr2930 at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 22 Jul 2009 02:43:50 -0700 (PDT)
- Subject: Re: Errors which may be related to hash_map
- References: <24265935.post@talk.nabble.com> <m363ecursi.fsf@google.com>
> I am running Fedora 10 and have been trying to compile & install a project
> by
> using the included make file, but I'm getting a bunch of errors. The make
> file specifies g++ 4.3.2. Here is my error (libAnomaly is a library which
> I
> am trying to compile):
> ../../include/libAnomaly/item.h:149: error: 'hash' is not a template
> ../../include/libAnomaly/item.h:150: error: explicit specialization of
> non-template 'std::hash'
It looks like the code expects that std::hash is defined. The C++
language does not define any such thing (C++0X does define
std::unordered_map). So it looks like your code is simply not valid
C++. You should contact the author of the code to see which compiler
they expect to use.
Ian
Actually the code was written by gcc, but the code is old, so it can't be
supported by new versions of g++, I changed the code so that I can compile
it using g++ 4.x, I add " __gnu_cxx " wherever it need hash_map.
--
View this message in context: http://www.nabble.com/Errors-which-may-be-related-to-hash_map-tp24265935p24603088.html
Sent from the gcc - Help mailing list archive at Nabble.com.