Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 33089 invoked from network); 10 Mar 2007 23:12:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2007 23:12:30 -0000 Received: (qmail 51551 invoked by uid 500); 10 Mar 2007 23:12:38 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 51537 invoked by uid 500); 10 Mar 2007 23:12:38 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 51526 invoked by uid 99); 10 Mar 2007 23:12:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2007 15:12:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2007 15:12:29 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 45ACF714044 for ; Sat, 10 Mar 2007 15:12:09 -0800 (PST) Message-ID: <32581967.1173568329251.JavaMail.jira@brutus> Date: Sat, 10 Mar 2007 15:12:09 -0800 (PST) From: "Mark Brown (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-338) [Cygwin] linker errors due to multiple definition of `std::exception::what()' In-Reply-To: <3905442.1171236005500.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479884 ] Mark Brown commented on STDCXX-338: ----------------------------------- If it helps, I also get the same error with the latest trunk and gcc 4.1.1: gcc -c -I/home/mbrown/stdcxx/include/ansi -D_RWSTDDEBUG -mthreads -D_RWSTD_USE_CONFIG -I/home/mbrown/stdcxx/include -I/home/mbrown/stdcxx-gcc-4.1.1-15s/include -I/home/mbrown/stdcxx/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align t.cpp gcc t.o -o t -mthreads -L/home/mbrown/stdcxx-gcc-4.1.1-15s/lib -lstd15s -lsupc++ -lcatgets -liconv -lm /usr/local/gcc-4.1.1/lib/gcc/i686-pc-cygwin/4.1.1/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev': /home/mbrown/gcc-4.1.1/libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::exception::what() const' /home/mbrown/stdcxx-gcc-4.1.1-15s/lib/libstd15s.a(exception.o):/home/mbrown/stdcxx/src/exception.cpp:341: first defined here collect2: ld returned 1 exit status make: *** [t] Error 1 > [Cygwin] linker errors due to multiple definition of `std::exception::what()' > ----------------------------------------------------------------------------- > > Key: STDCXX-338 > URL: https://issues.apache.org/jira/browse/STDCXX-338 > Project: C++ Standard Library > Issue Type: Bug > Components: Configuration > Affects Versions: 4.1.3 > Environment: Cygwin > Reporter: Mark Brown > > When linking with stdcxx on Cygwin I get errors like: > /usr/lib/gcc/i686-pc-cygwin/3.4.4/libsupc++.a(eh_exception.o):(.text+0x80): multiple definition of `std::exception::what() const' > The config.log file shows these errors for the EXCEPTION_WHAT test: > gcc -c -pedantic -nostdinc++ -g -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I. /build > /sebor/stdcxx-4.1.3/etc/config/src/EXCEPTION_WHAT.cpp > In file included from /home/mbrown/stdcxx-4.1.3/etc/config/src/EXCEPTION_WHAT.cpp:10: > /home/mbrown/stdcxx-4.1.3/etc/config/src/BAD_ALLOC_ASSIGNMENT.cpp:83: warning: `class std::exception' has virtual functions but non-virtual destructor > /home/mbrown/stdcxx-4.1.3/etc/config/src/BAD_ALLOC_ASSIGNMENT.cpp:333: warning: unused parameter 'rhs' > /home/mbrown/stdcxx-4.1.3/etc/config/src/BAD_ALLOC_ASSIGNMENT.cpp:388: warning: unused parameter 'rhs' > gcc EXCEPTION_WHAT.o -lm -lsupc++ -o EXCEPTION_WHAT > /usr/lib/gcc/i686-pc-cygwin/3.4.4/libsupc++.a(eh_exception.o):(.text+0x0): multiple definition of `std::exception::~exception()' > EXCEPTION_WHAT.o:/home/mbrown/stdcxx-4.1.3/etc/config/src/BAD_ALLOC_ASSIGNMENT.cpp:(.text$_ZNSt9exceptionD2Ev[std::exception::~exception()]+0x0): first defined here > collect2: ld returned 1 exit status -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.