This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

BUG: gcc2.9.5-1 and mingw32 don't compile


   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/gcc-w32/gcc/ -B/usr/local/experimental/win32//i586-pc-mingw32/bin/ -c -g -O2 -fno-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/gcc-w32/gcc/ -B/usr/local/experimental/win32//i586-pc-mingw32/bin/ -c -g -O2 -fno-implicit-templates -I. -I../../../gcc-2.95.1/libio -nostdinc++  ../../../gcc-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.

   Cu... Stefan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]