Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Compiler bug? or library bug?
The attached codes cause the following error message. test.obj(test) Error 42: Symbol Undefined ?_M_increment ?$_Rb_global std _N std SAPAU_Rb_tree _node_base 2 PAU32 Z (_Rb_tree_node_base::d *cdecl std::_N::d::_Rb_global<>::_M _increment(_N::d *)) test.obj(test) Error 42: Symbol Undefined ?_M_decrement ?$_Rb_global std _N std SAPAU_Rb_tree _node_base 2 PAU32 Z (_Rb_tree_node_base::d *cdecl std::_N::d::_Rb_global<>::_M _decrement(_N::d *)) test.obj(test) Error 42: Symbol Undefined ?_Rebalance ?$_Rb_global std _N std SAXPAU_Rb_tree_ node_base 2 AAPAU32 Z (void cdecl std::_N::d::_Rb_global<>::_Rebalance(_Rb_tree _node_base::d *,_N::d *&)) #include <iostream> #include <map> #include <string> int main( void ) { std::map<std::string, int> directory; directory["a"] = 123; directory["b"] = 456; directory["c"] = 789; directory["d"] = 987; directory["e"] = 654; directory["f"] = 321; std::string s; while( std::cin >> s ) { if ( directory.find(s) != directory.end() ) std::cout << "directory[\"" << s << "\"] == " << directory[s] << "\n"; else std::cout << "Sory, no listing for " << s << "\n"; } // while return 0; } Dec 18 2002
In article <atqin0$cu$1 digitaldaemon.com>, Steve says...The attached codes cause the following error message. Dec 19 2002
In article <atsfme$1dbf$1 digitaldaemon.com>, Richard says...In article <atqin0$cu$1 digitaldaemon.com>, Steve says...The attached codes cause the following error message. Dec 19 2002
On 19 Dez 2002, Richard wrote:I think Christof may be away or something, so you can try this for the Dec 19 2002
|