samuel2015 / sparsehash

Automatically exported from code.google.com/p/sparsehash
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Build error of the example code in the 'dense_hash_map.html' #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello
Now, I do try to use the 'google-sparehash 1.1' at the Windows XP sp2
I tried to building the example code in the 'dense_hash_map.html'.
But, there are errors of the following.
 |>error C2065: 'hash' : undeclared identifier
 |>error C2059: syntax error : 'const'
 |>error C2947: expecting '>' to terminate template-argument-list, 
found '>'
 |>error C2976: 'google::sparse_hash_map' : too few template arguments
 |>see declaration of 'google::sparse_hash_map'
 |>error C2133: 'months' : unknown size
 |> ....................

 Why is error happens?.
 If you help me, thank you very much.

Original issue reported on code.google.com by kunky...@gmail.com on 21 Jul 2008 at 8:32

GoogleCodeExporter commented 9 years ago
The windows hash API is different (the documentation assumes unix).  I'll 
clarify.

Original comment by csilv...@gmail.com on 21 Jul 2008 at 7:49

GoogleCodeExporter commented 9 years ago
I've augmented the documentation a bit.  This will be in the next release.

Original comment by csilv...@gmail.com on 21 Jul 2008 at 8:59

GoogleCodeExporter commented 9 years ago
Fixed in sparsehash 1.2, just released.

Original comment by csilv...@gmail.com on 19 Sep 2008 at 7:22