Error in dense_hash_map file!

447 views
Skip to first unread message

break

unread,
Oct 15, 2007, 11:31:30 AM10/15/07
to google-sparsehash
Hello,
i resive this error: "fatal error C1083: Cannot open include file:
'ext/hash_fun.h': No such file or directory" in
file dense_hash_map, by trying to compile my project:
#include HASH_FUN_H // defined in config.h
in file dense_has_map file, does any one know how to solve this error?
Can i comment out this line?

regards
break;

Craig Silverstein

unread,
Oct 15, 2007, 11:56:46 AM10/15/07
to google-s...@googlegroups.com
} i resive this error: "fatal error C1083: Cannot open include file:
} 'ext/hash_fun.h': No such file or directory" in
} file dense_hash_map, by trying to compile my project:

It looks like you're using the unix config.h rather than the windows
one. You need to make sure the config.h you're using comes from
src/windows/config.h.

craig

break

unread,
Oct 16, 2007, 3:34:07 AM10/16/07
to google-sparsehash
Hello Craig,
thanx for answer, i comment out this line, (i dont know do i need this
include?), by compiling i dont have this error like before,
but i got a new one, in line:
// i try to use the sample:
// CODE
struct eqstr
{
bool operator()(const char* s1, const char* s2) const
{
return (s1 == s2) || (s1 && s2 && strcmp(s1, s2) == 0);
}
};
google::dense_hash_map<const char*, int, hash<const char*>, eqstr>
months; // <-- here is error, error C2065: 'hash' : undeclared
identifier
// END CODE

Is this framework designed for UNIX or Linux only maybe?
Regards
break;

break

unread,
Oct 16, 2007, 5:22:05 AM10/16/07
to google-sparsehash

Hello
citat:

> It looks like you're using the unix config.h rather than the windows
> one. You need to make sure the config.h you're using comes from
> src/windows/config.h.
citat end.

uups, i did'n make sure that, ok i try to solve this now!

regards
break;

break

unread,
Oct 30, 2007, 7:59:50 AM10/30/07
to google-sparsehash
Hello,
you have right, after i include the src/windows/consif.h i can compile
my project with googlemap!

regards
break;

Reply all
Reply to author
Forward
0 new messages