starwing / sparsehash

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

time_hash_map.cc errors when build in VC++ 2005 #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the package (.zip), unzip, open "google-sparsehash.sln" 
2. Process the conversion ... 
3. Debug mode, build the solution

What is the expected output? What do you see instead?
Here is the error output:

------ Rebuild All started: Project: time_hash_map, Configuration: Debug
Win32 ------
Deleting intermediate and output files for project 'time_hash_map',
configuration 'Debug|Win32'
Compiling...
port.cc
time_hash_map.cc
c:\documents and
settings\karet\desktop\sparsehash-1.0.1\src\time_hash_map.cc(175) : error
C2143: syntax error : missing ';' before '<'
c:\documents and
settings\karet\desktop\sparsehash-1.0.1\src\time_hash_map.cc(175) : error
C2059: syntax error : '<'
c:\documents and
settings\karet\desktop\sparsehash-1.0.1\src\time_hash_map.cc(175) : error
C2065: 'Size' : undeclared identifier
c:\documents and
settings\karet\desktop\sparsehash-1.0.1\src\time_hash_map.cc(175) : error
C2065: 'Hashsize' : undeclared identifier
c:\documents and
settings\karet\desktop\sparsehash-1.0.1\src\time_hash_map.cc(175) : error
C2143: syntax error : missing ';' before '{'
c:\documents and
settings\karet\desktop\sparsehash-1.0.1\src\time_hash_map.cc(175) : error
C2447: '{' : missing function header (old-style formal list?)
Generating Code...
Build log was saved at "file://c:\Documents and
Settings\Karet\Desktop\sparsehash-1.0.1\vsprojects\time_hash_map\Debug\BuildLog.
htm"
time_hash_map - 6 error(s), 0 warning(s)
========== Rebuild All: 3 succeeded, 1 failed, 0 skipped ==========

What version of the product are you using? On what operating system?
Microsoft Visual Studio 2005
Version 8.0.50727.762  (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727

on WindowsXP SP2.

Original issue reported on code.google.com by jiampojamarn3 on 29 Nov 2007 at 7:07

GoogleCodeExporter commented 9 years ago
Darn it!  The fix I made for 1.0.1 (changing hash to SPARSEHASH_HASH) was 
incomplete
-- I neglected to change it in time_hash_map.  The fix is to change the 'struct 
hash'
in line 187 to 'struct SPARSEHASH_HASH'.  I'll release sparsehash 1.0.2 shortly.

Original comment by csilv...@gmail.com on 29 Nov 2007 at 7:43

GoogleCodeExporter commented 9 years ago
Fixed in sparsehash 1.0.2.  Sorry for the trouble.

Original comment by csilv...@gmail.com on 29 Nov 2007 at 9:18