This is the mail archive of the cygwin mailing list for the Cygwin 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: multiple definition of std::_Rb_tree_rotate_left at link time


On 10 February 2006 06:55, venkatraj k.s wrote:

> I am facing a problem cygwin , detailed description is
> given below.
> 
> My program uses archives , 

> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(tree.o)::
> multiple definition of
> `std::_Rb_tree_rotate_left(std::_Rb_tree_node_base*,
> std::_Rb_tree_node_base*&)'
>
src/../tools/fs/cygwin_nt-5.2/lib/liblsidesignconfig.a(netlistParam.o):/usr/in
clude/c++/3.3.1/bits/stl_tree.h:(.text$_ZSt20_Rb_tree_rotate_leftPSt18_Rb_tree
_node_baseRS0_[std::_Rb_tree_rotate_left(std::_Rb_tree_node_base*,
> std::_Rb_tree_node_base*&)]+0x0): first defined here
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(tree.o)::
> multiple definition of
> `std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*,
> std::_Rb_tree_node_base*&)'
>
src/../tools/fs/cygwin_nt-5.2/lib/liblsidesignconfig.a(netlistParam.o):/usr/in
clude/c++/3.3.1/bits/stl_tree.h:(.text$_ZSt21_Rb_tree_rotate_rightPSt18_Rb_tre
e_node_baseRS0_[std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*,
> std::_Rb_tree_node_base*&)]+0x0): first defined here

> I checked the gcc compiler version in both machines i
> have seen that local machine has gcc version 3.4.4
> where as the other machine has version 3.3.1. 

  .o files from 3.3.x are not necessarily compatible with .o files from 3.4.x,
that is why they have different minor version numbers.

> Is there any way i can eliminate this error by using
> the same archives 

  No.

>( i dont want to build new archives ), 

  Downgrade the gcc version on the local machine using setup.exe; 3.3.3-3
should be compatible with 3.3.1 and it's still the 'Prev' version.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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