This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: BUG: gcc2.9.5-1 and mingw32 don't compile
- To: Stefan Westerfeld <stefan at space dot twc dot de>
- Subject: Re: BUG: gcc2.9.5-1 and mingw32 don't compile
- From: Mumit Khan <khan at xraylith dot wisc dot EDU>
- Date: Mon, 30 Aug 1999 14:06:23 -0500
- cc: gcc-bugs at gcc dot gnu dot org
Stefan Westerfeld <stefan@space.twc.de> writes:
> Hi!
>
> I found a bug when trying to build gcc2.95-1 crosscompiler with
>
> ../gcc-2.95-1/configure --target=i586-pc-mingw32
>
> (In serparte build directory), and later make. My system is an
> i686-pc-linux-gnu (running debian-2.1, that is glibc2). I did install
> a seperate binutils for the crosscompiler, and all that other stuff.
>
> /usr/local/experimental/src/gcc-w32/gcc/xgcc -B/usr/local/experimental/src/gc
> c-w32/gcc/ -B/usr/local/experimental/win32//i586-pc-mingw32/bin/ -c -g -O2 -f
> no-implicit-templates -I. -I../../../gcc-2.95.1/libio -nostdinc++ ../../../
> gcc-2.95.1/libio/stdiostream.cc -o pic/stdiostream.o
> /usr/local/experimental/src/gcc-w32/gcc/xgcc -B/usr/local/experimental/src/gc
> c-w32/gcc/ -B/usr/local/experimental/win32//i586-pc-mingw32/bin/ -c -g -O2 -f
> no-implicit-templates -I. -I../../../gcc-2.95.1/libio -nostdinc++ ../../../g
> cc-2.95.1/libio/stdiostream.cc
> ../../../gcc-2.95.1/libio/stdiostream.cc: In method `stdiobuf::stdiobuf(FILE
> *)':
> ../../../gcc-2.95.1/libio/stdiostream.cc:55: implicit declaration of function
> `int fileno(...)'
>
> Manually adding an extern "C"-block containing a definition of fileno to
> libio/stdiostream.cc works, compiler then builds fine. But there should be
> an include or something that can be added to have the same effect.
This probably means that you have an old version of the runtime headers
installed. Since you give no information on what runtime version you're
using, where you got it, and so on, I can only suggest that you get a
newer one from my site:
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/runtime/
the 1999-07-31 is the one I distribute with gcc-2.95 binaries and is
considered stable. My next 'stable' update will probably be in about
2 weeks from now.
Regards,
Mumit