delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/24/20:44:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20010325014427.935.qmail@web6404.mail.yahoo.com>
Date: Sun, 25 Mar 2001 13:44:27 +1200 (NZST)
From: =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Subject: Re: GCC 2.95.3-1 available for testing
To: Cygwin <cygwin AT cygwin DOT com>
MIME-Version: 1.0

cgf wrote:
> On Sun, Mar 25, 2001 at 11:53:24AM +1200, Danny Smith wrote:
>> Thanks for the upgrade to 2.95.3 
>>
>>2.95.3-1 works on my testcases with -mno-cygwin.  
>
with
>>(2) explicit -I/usr/include/g++-3 to find G++ headers

> This directory is searched automatically.  You shouldn't need the -I.
> cgf

It *is* without the -mno-cygwin, but  with

g++ -c -H -mno-cygwin test_gcc.cpp 
I get:

/usr/include/mingw/stdio.h
 /usr/include/mingw/_mingw.h
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-1/include/stddef.h
test_gcc.cpp:2: fstream: No such file or directory


I have found another problem, with the way I installed mingw libstdc++:

With  libstdc++.a in /usr/lib/mingw, this lib gets linked rather than the one
in /usr/lib when using default cygwin eg;

g++ -c test_gcc.cpp
g++ -v test_gcc.o

gives the following:

Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-1/specs
gcc driver version 2.95.3-1 (cygwin special) executing gcc version gcc-2.95.3-1
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-1/collect2.exe -Bdynamic
--dll-search-prefix=cyg /lib/crt0.o -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-1
-L/usr/lib/mingw test_gcc.o -lstdc++ -lgcc -lcygwin -luser32 -lkernel32
-ladvapi32 -lshell32 -lgcc
/usr/lib/mingw/libstdc++.a(iostream.o)(.text+0x171e): undefined reference to
`_imp___iob'
etc.
 
My workaround was to put libstdc++ in  /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-1
and then works fine.

Danny

_____________________________________________________________________________
http://calendar.yahoo.com.au - Yahoo! Calendar
- Access your appointments and meetings online.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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