delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/09/10:10:51

X-Spam-Check-By: sourceware.org
Message-ID: <20060209094253.27784.qmail@web36509.mail.mud.yahoo.com>
Date: Thu, 9 Feb 2006 01:42:53 -0800 (PST)
From: "venkatraj k.s" <rajvens AT yahoo DOT com>
Subject: multiple definition of std::_Rb_tree_rotate_left at link time
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Hi,

I am facing a problem cygwin , detailed description is
given below.

My program uses archives , these archives are built in
cygwin platform ( uname -a : CYGWIN_NT-5.0, uname -r :
1.5.12s(0.116/4/2) ) in a windows 2000 server. I need
to use these archives in my local machine , which is
Windows 2003 server (  uname -a : CYGWIN_NT-5.2, unme
-r : 1.5.18(0.132/4/2) ).  Now my problem is  when i
compile my program ( in my local machine) i get an
error at link time saying that there is a multiple
definition of
`std::_Rb_tree_rotate_left(std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*&). 
=======================================================
/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/include/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/include/c++/3.3.1/bits/stl_tree.h:(.text$_ZSt21_Rb_tree_rotate_rightPSt18_Rb_tree_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. I tried
to put the "using namespace std" in the header files
if any header includes stl , and  built the archives
again. I found that this error still persists.

Is there any way i can eliminate this error by using
the same archives ( i dont want to build new archives
), please help me if you have any idea about the
problem..




Thanks and Regards,
RAJU K

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
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