linker error with libstdc++

Marc Glisse marc.glisse@inria.fr
Wed Nov 30 15:36:00 GMT 2011


(probably a matter for the gcc-help list)

On Wed, 30 Nov 2011, mahadev wrote:

> i am using multimap in a sample code and compiling with g++; the program
> compiles fine.
>
> If i add the same multimap code in my project, i get the below error:
>
[...]
> /usr/include/c++/4.4/bits/stl_tree.h:883: undefined reference to
> `std::_Rb_tree_insert_and_rebalance(unsigned int, std::_Rb_tree_node_base*,
                                       ^^^^^^^^^^^^
> std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
> collect2: ld returned 1 exit status
> make: *** [soapServer] Error 1

That "unsigned int" is strange. The function is declared as taking a const 
bool and is always passed a bool. Do you have a #define bool unsigned 
somewhere?

-- 
Marc Glisse



More information about the Libstdc++ mailing list