X-Spam-Check-By: sourceware.org Message-ID: <20060210065434.5074.qmail@web36514.mail.mud.yahoo.com> Date: Thu, 9 Feb 2006 22:54:34 -0800 (PST) From: "venkatraj k.s" Subject: multiple definition of std::_Rb_tree_rotate_left at link time To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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/