This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linker error with libstdc++


(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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]