delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/10/06:10:41

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: multiple definition of std::_Rb_tree_rotate_left at link time
Date: Fri, 10 Feb 2006 11:10:21 -0000
Message-ID: <006201c62e32$957c9490$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
In-Reply-To: <20060210065434.5074.qmail@web36514.mail.mud.yahoo.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019