Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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?= Subject: Re: GCC 2.95.3-1 available for testing To: Cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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