Thread overview
Compiler bug? or library bug?
Dec 18, 2002
Steve
Dec 19, 2002
Richard
Dec 19, 2002
Richard
Dec 19, 2002
Christof Meerwald
December 18, 2002
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;
}


December 19, 2002
In article <atqin0$cu$1@digitaldaemon.com>, Steve says...
>
>The attached codes cause the following error message.

Not a compiler problem. STLport Configuration issue. I will talk to Christof about it, and one of us will post the fix here.

RIchard


December 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.
>
>Not a compiler problem. STLport Configuration issue. I will talk to Christof about it, and one of us will post the fix here.

I think Christof may be away or something, so you can try this for the time being, but since he has not given it a look through, your mileage may vary. Your example links with no undefined symbols if compiled with:

-D_STLP_EXPOSE_GLOBALS_IMPLEMENTATION

Richard


December 19, 2002
On 19 Dez 2002, Richard wrote:
> I think Christof may be away or something, so you can try this for the

Not really away, but I am afraid I won't have much time until at least Saturday...


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw@jabber.at mailto cmeerw at web.de