delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/11/12:29:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 11 Jul 2002 12:29:55 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20020711044304 DOT GA3292 AT redhat DOT com> <3D2D3205 DOT 7080606 AT ece DOT gatech DOT edu>
Mime-Version: 1.0
In-Reply-To: <3D2D3205.7080606@ece.gatech.edu>
User-Agent: Mutt/1.3.23.1i

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 AT 16'
>g77-2 -mno-cygwin breaks:
> /usr/lib/mingw/libmingw32.a(main.o)(.text+0x8d):main.c: undefined reference 
> to `WinMain AT 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/

- Raw text -


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