Errors which may be related to hash_map

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

 



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):

errors:

../../include/libAnomaly/item.h:149: error: 'hash' is not a template
../../include/libAnomaly/item.h:150: error: explicit specialization of
non-template 'std::hash'
../../include/libAnomaly/item.h:310: error: extra qualification ignored
../../include/libAnomaly/item.h:311: error: explicit specialization of
non-template 'std::<anonymous struct>'
../../include/libAnomaly/item.h:311: error: an anonymous struct cannot have
function members
../../include/libAnomaly/item.h:321: error: abstract declarator
'std::<anonymous struct>' used as declaration
In file included from ../../include/anomaly.h:68,
                 from item.cpp:21:
../../include/libAnomaly/model.h:269: error: ISO C++ forbids declaration of
'hash_map' with no type
../../include/libAnomaly/model.h:269: error: expected ';' before '<' token
In file included from ../../include/anomaly.h:75,
                 from item.cpp:21:
../../include/libAnomaly/profile.h: In member function 'virtual size_t
Profile::EvaluationResult::hash_value() const':
../../include/libAnomaly/profile.h:184: error: 'std::hash' is not a template
../../include/libAnomaly/profile.h:186: error: no match for call to
'(std::hash) (const char*)'
../../include/libAnomaly/item.h:156: note: candidates are: size_t
std::hash::operator()(const Item*) const
make[2]: *** [item.lo] Error 1
make[2]: Leaving directory
`/root/Desktop/Libanomaly/libanomaly-0.1/libanomaly-0.1/src/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/Desktop/Libanomaly/libanomaly-0.1/libanomaly-0.1/src'
make: *** [all-recursive] Error 1



Can these problems due to gcc version? The problem seems to be connected to
hash_map, but no sure. Before running Fedora 10, I have been running fedora
8, there was g++ 4.1.2, but the errors were the same.

I have checked this link too, and changed and rewrote the code to build
using gcc 4.3:

http://gcc.gnu.org/gcc-4.3/porting_to.html
http://gcc.gnu.org/gcc-4.3/porting_to.html 

But nothing has changed!!

What can I do now, any suggestion?

BR, Zahra



-- 
View this message in context: http://www.nabble.com/Errors-which-may-be-related-to-hash_map-tp24265935p24265935.html
Sent from the gcc - Help mailing list archive at Nabble.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