knighton / sparsehash

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

'hash' : is not a member of 'stdext' #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just Compile & Bind The Program On Visual Studio Express Edition 2008

What is the expected output? What do you see instead?
1>------ Rebuild All started: Project: hashtable_unittest, Configuration: 
Debug Win32 ------
1>Deleting intermediate and output files for project 'hashtable_unittest', 
configuration 'Debug|Win32'
2>------ Rebuild All started: Project: sparsetable_unittest, 
Configuration: Debug Win32 ------
2>Deleting intermediate and output files for 
project 'sparsetable_unittest', configuration 'Debug|Win32'
1>Compiling...
2>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and 
will be removed in a future release
2>cl : Command line warning D9035 : option 'Wp64' has been deprecated and 
will be removed in a future release
1>hashtable_unittest.cc
2>port.cc
2>sparsetable_unittest.cc
1>c:\documents and settings\administrator\desktop\sparsehash-1.1
\src\hashtable_unittest.cc(846) : error C2039: 'hash' : is not a member 
of 'stdext'
1>c:\documents and settings\administrator\desktop\sparsehash-1.1
\src\hashtable_unittest.cc(846) : error C2504: 'hash' : base class 
undefined
1>c:\documents and settings\administrator\desktop\sparsehash-1.1
\src\hashtable_unittest.cc(846) : error C2143: syntax error : missing ',' 
before '<'
1>c:\documents and settings\administrator\desktop\sparsehash-1.1
\src\hashtable_unittest.cc(848) : error C2065: 'i' : undeclared identifier
1>c:\documents and settings\administrator\desktop\sparsehash-1.1
\src\hashtable_unittest.cc(853) : error C2065: 'id_' : undeclared 
identifier
1>port.cc
2>Generating Code...
1>Generating Code...
2>Compiling manifest to resources...
1>Build log was saved at "file://c:\Documents and 
Settings\Administrator\Desktop\sparsehash-1.1
\vsprojects\hashtable_unittest\Debug\BuildLog.htm"
POST http://code.google.com/p/google-sparsehash/issues/entry.do HTTP/1.1POST 
http://code.google.com/p/google-sparsehash/issues/entry.do 
HTTP/1.11>hashtable_unittest - 5 error(s), 1 warning(s)
2>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
2>Copyright (C) Microsoft Corporation.  All rights reserved.
2>Linking...
2>LINK : C:\Documents and Settings\Administrator\Desktop\sparsehash-1.1
\Debug/sparsetable_unittest.exe not found or not built by the last 
incremental link; performing full link
3>------ Rebuild All started: Project: type_traits_unittest, 
Configuration: Debug Win32 ------
3>Deleting intermediate and output files for 
project 'type_traits_unittest', configuration 'Debug|Win32'
3>Compiling...
3>cl : Command line warning D9035 : option 'Wp64' has been deprecated and 
will be removed in a future release
3>port.cc
2>Embedding manifest...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
2>Copyright (C) Microsoft Corporation.  All rights reserved.
2>Build log was saved at "file://c:\Documents and 
Settings\Administrator\Desktop\sparsehash-1.1
\vsprojects\sparsetable_unittest\Debug\BuildLog.htm"
2>sparsetable_unittest - 0 error(s), 1 warning(s)
3>type_traits_unittest.cc
4>------ Rebuild All started: Project: time_hash_map, Configuration: Debug 
Win32 ------
4>Deleting intermediate and output files for project 'time_hash_map', 
configuration 'Debug|Win32'
4>Compiling...
4>cl : Command line warning D9035 : option 'Wp64' has been deprecated and 
will be removed in a future release
4>port.cc
3>Generating Code...
3>Compiling manifest to resources...
3>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
3>Copyright (C) Microsoft Corporation.  All rights reserved.
3>Linking...
3>LINK : C:\Documents and Settings\Administrator\Desktop\sparsehash-1.1
\Debug/type_traits_unittest.exe not found or not built by the last 
incremental link; performing full link
4>time_hash_map.cc
3>Embedding manifest...
3>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
3>Copyright (C) Microsoft Corporation.  All rights reserved.
3>Build log was saved at "file://c:\Documents and 
Settings\Administrator\Desktop\sparsehash-1.1
\vsprojects\type_traits_unittest\Debug\BuildLog.htm"
3>type_traits_unittest - 0 error(s), 1 warning(s)
4>Generating Code...
4>Compiling manifest to resources...
4>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
4>Copyright (C) Microsoft Corporation.  All rights reserved.
4>Linking...
4>LINK : C:\Documents and Settings\Administrator\Desktop\sparsehash-1.1
\Debug/time_hash_map.exe not found or not built by the last incremental 
link; performing full link
4>Embedding manifest...
4>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
4>Copyright (C) Microsoft Corporation.  All rights reserved.
4>Build log was saved at "file://c:\Documents and 
Settings\Administrator\Desktop\sparsehash-1.1
\vsprojects\time_hash_map\Debug\BuildLog.htm"
4>time_hash_map - 0 error(s), 1 warning(s)
========== Rebuild All: 3 succeeded, 1 failed, 0 skipped ==========

What version of the product are you using? On what operating system?
Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by bornlibr...@gmail.com on 17 Jul 2008 at 11:38

GoogleCodeExporter commented 9 years ago
Weird, it looks like the change that I made based on
http://groups.google.com/group/google-ctemplate/browse_thread/thread/8901af25580
28a09
is incomplete.

This code compiles for me; I'm not sure exactly what the difference is.  But 
I'll fix
this up for the next release.

Original comment by csilv...@gmail.com on 17 Jul 2008 at 9:07

GoogleCodeExporter commented 9 years ago

Original comment by csilv...@gmail.com on 17 Jul 2008 at 9:07

GoogleCodeExporter commented 9 years ago
btw, to work around the problem until a new release comes out, it should be 
possible
to just replace the hash<int> on line 846 (or so) with hash_compare<int>.

Original comment by csilv...@gmail.com on 17 Jul 2008 at 9:10

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