This is the mail archive of the gcc-patches@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]

Re: mingw32 and stdiostream


On Wed, 22 Jul 1998, Phil Blecker wrote:

> Starting a couple of snapshots ago, I've been unable to build a
> cross-compiler on Linux with glibc-2 for mingw32. The problem is in libio:
> 
> 
> + /usr/src/devel/gcc/i586-inX-linux.to.mingw32/gcc/xgcc -B/usr/src/devel/gcc/i586-inX-linux.to.mingw32/gcc/ -c -march=pentium -malign-double -pipe -O6 -fno-keep-static-consts -fno-implicit-templates -I. -I../../../libio -nostdinc++ -g ../../../libio/std
iostream.cc
> ../../../libio/stdiostream.cc: In method `stdiobuf::stdiobuf(struct FILE *)':
> ../../../libio/stdiostream.cc:55: `fileno' undeclared (first use this function)
> ../../../libio/stdiostream.cc:55: (Each undeclared identifier is reported only once
> ../../../libio/stdiostream.cc:55: for each function it appears in.)
> make: *** [stdiostream.o] Error 1
> 

Nope, the problem is the mingw32 header files. Add the fileno declarations
from <io.h> to <stdio.h>, and you should be ok. Next release, egcs-1.1,
will have the fix.

Mumit



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