linker error with libstdc++
mahadev
vasavi.mahadev@polycom.com
Thu Dec 1 08:54:00 GMT 2011
Dear Marc
yes; i had "#define bool unsigned int" in my project code.
Removing this fixed my linker issue.
Thank you very much for your suggestion.
I was stuck with this issue from last 3 days.
Regards,
Vasavi
Marc Glisse-6 wrote:
>
> (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
>
>
--
View this message in context: http://old.nabble.com/linker-error-with-libstdc%2B%2B-tp32884724p32890380.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.
More information about the Libstdc++
mailing list