From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8242 invoked by alias); 11 Jul 2002 16:29:49 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8234 invoked from network); 11 Jul 2002 16:29:49 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 11 Jul 2002 16:29:49 -0000 Received: from redhat.com (vpn50-1.rdu.redhat.com [172.16.50.1]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g6BGTms31144 for ; Thu, 11 Jul 2002 12:29:48 -0400 Received: by redhat.com (Postfix, from userid 201) id 82D181C359; Thu, 11 Jul 2002 12:29:55 -0400 (EDT) Date: Thu, 11 Jul 2002 10:19:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Available for test: gcc-3.1.1-2 gcc2-2.95.3-8 Message-ID: <20020711162955.GA11047@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20020711044304.GA3292@redhat.com> <3D2D3205.7080606@ece.gatech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D2D3205.7080606@ece.gatech.edu> User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-07/txt/msg00957.txt.bz2 On Thu, Jul 11, 2002 at 03:21:41AM -0400, Charles Wilson wrote: >Okay, there's just one thing I forgot to mention last time: there still >is no mingw libstdc++(-2).a for gcc-2.95.3-8 (of course, 2.95.3-5 didn't >have one either, so this is no big deal. However, since you're >providing the mingw/g++-3 headers ... I wasn't really planning on providing this. The goal is to switch to v3, really. The only reason I provided the headers was to allow g++ to work the same with -mno-cygwin as it did before. >Anyway, see below. > >The attached test "suite" provides stripped down versions of the C, C++, >and Fortran dllhelpers examples, plus several -mno-cygwin invocation >scripts. > >I tested thus: > unpack > cd gcc-tests/c > unset CC > export CC > make > make clean > > export CC=mgcc > make > make clean > > export CC=gcc-2 > make > make clean > > export CC=mgcc-2 > make > make clean > >Then, same thing in the cxx directory, using CXX=[],mg++,g++-2,mg++-2. >Ditto in f77 dir, using FC=[],mg77,g77-2,mg77-2 > >Results: > > >3.1.1: > >gcc works >gcc -mno-cygwin works >g++ works >g++ -mno-cygwin works >g77 works >g77 -mno-cygwin works > >2.95.3-8: > >/usr/lib/libstdc++.a.2.1.0 ?? what is this file? It's been around for some time. It's the libstdc++.a library for gcc 2.95.3 + libstdc++. >gcc-2 works >gcc-2 -mno-cygwin works > >g++-2 works >g++-2 -mno-cygwin links against the >/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-8/libstdc++-2.a > (oh yeah -- there is no mingw libstdc++ for this release. > I copied my mingw libstdc++.a to libstdc++-2.a, and then got *different* > errors) > see below. Shouldn't be a mangling issue; it was build with 2.95.3-5. Are you sure this is being used, though? >g77-2 breaks: > /usr/lib/libcygwin.a(libcmain.o)(.text+0x81): undefined reference to > `WinMain@16' >g77-2 -mno-cygwin breaks: > /usr/lib/mingw/libmingw32.a(main.o)(.text+0x8d):main.c: undefined reference > to `WinMain@16' Strange. I didn't touch g77 at all. >Note the g++-2 IS finding my custom libstdc++-2.a (which is a >copy of a libstdc++.a that worked just fine with gcc-2.95.3-5). > >mg++-2 -o usedll.exe -g usedll.o -L./ -lcxxdll >usedll.o: In function `main': Can you add a -v here, just to verify what library is being used? cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/