hash_map<int,double> Fehler C2143...
-
Hallo!
Ich habe in einem bereits etwas umfangreicheren Projekt zwei einzelne Maps in Hash_Maps umgeändert. Da beide Maps ja die gleiche (STL-) Notation verwenden, dachte ich das wäre so ohne weiteres möglich.
Nun wirft der Compiler aber leider folgende Fehler aus (alle aus xhash):
...
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(72) : error C2143: Syntaxfehler : Es fehlt ';' vor '<'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(490) : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'std::_Hash<_Tr>'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(73) : error C2238: Unerwartete(s) Token vor ';'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(75) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(75) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'allocator_type'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(76) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(76) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'size_type'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(77) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(77) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'difference_type'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(78) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(78) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'pointer'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(79) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(79) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'const_pointer'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(80) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(80) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'reference'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(81) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(81) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'const_reference'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(82) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(83) : error C2653: '_Mylist' : Keine Klasse oder Namespace
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(83) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'const_iterator'
c:\Programme\Microsoft Visual Studio .NET\Vc7\include\xhash(84) : error C2653: '_Mylist' : Keine Klasse oder Namespace
...Hash_map ist korrekt includiert (<hash_map>), alle betreffenden Methoden etc. wurden angepasst und ich benutze VC 7.0 (sollte ja die Hash_Map kennen). Vorkompilierte Header sind aus, ebenso die minimale Neuerstellung (für alle Fälle
).
Hatte zufällig jemand dieses Problem schon mal und weiss woran es liegt? Vielen Dank!