This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: linker error with libstdc++
- From: mahadev <vasavi dot mahadev at polycom dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 1 Dec 2011 00:54:42 -0800 (PST)
- Subject: Re: linker error with libstdc++
- References: <32884724.post@talk.nabble.com> <alpine.DEB.2.02.1111301633360.2383@laptop-mg.saclay.inria.fr>
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.