Mail Archives: cygwin/2001/03/24/20:44:54
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 -