Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#65 error C2872: 'hash' : ambiguous symbol

closed-wont-fix
nobody
None
5
2012-03-10
2012-03-07
reandr
No

----- Build started: Project: WinDjView, Configuration: Release Unicode Win32 ------
1> stdafx.cpp
1>d:\windjview-1.0.3-source\windjview-1.0.3\libdjvu\GContainer.h(1143): error C2872: 'hash' : ambiguous symbol
1> could be 'hash'
1> or 'C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xfunctional(763) : std::hash'
1> d:\windjview-1.0.3-source\windjview-1.0.3\libdjvu\GContainer.h(1142) : while compiling class template member function 'HNode *GSetImpl<K>::get(const K &) const'
1> with
1> [
1> K=int
1> ]
1> d:\windjview-1.0.3-source\windjview-1.0.3\libdjvu\GContainer.h(1185) : see reference to class template instantiation 'GSetImpl<K>' being compiled
1> with
1> [
1> K=int
1> ]
1> d:\windjview-1.0.3-source\windjview-1.0.3\libdjvu\GContainer.h(1231) : see reference to class template instantiation 'GMapImpl<K,TI>' being compiled
1> with
1> [
1> K=int,
1> TI=int
1> ]
1> d:\windjview-1.0.3-source\windjview-1.0.3\libdjvu\GContainer.h(1322) : see reference to class template instantiation 'GMapTemplate<KTYPE,VTYPE,TI>' being compiled
1> with
1> [
1> KTYPE=int,
1> VTYPE=int,
1> TI=int
1> ]
1> d:\windjview-1.0.3-source\windjview-1.0.3\libdjvu\DjVuPalette.h(243) : see reference to class template instantiation 'GMap<KTYPE,VTYPE>' being compiled
1> with
1> [
1> KTYPE=int,
1> VTYPE=int
1> ]
1>d:\windjview-1.0.3-source\windjview-1.0.3\libdjvu\GContainer.h(1216): error C2872: 'hash' : ambiguous symbol
1> could be 'hash'
1> or 'C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xfunctional(763) : std::hash'
1> d:\windjview-1.0.3-source\windjview-1.0.3\libdjvu\GContainer.h(1207) : while compiling class template member function 'HNode *GMapImpl<K,TI>::get_or_create(const K &)'
1> with
1> [
1> K=int,
1> TI=int
1> ]
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

Discussion

  • I do not have Visual Studio 2010 so I cannot fix this. Please use Visual Studio 2005 to build WinDjView.

     
    • status: open --> closed-wont-fix