On 21 Jan 00, at 9:58, Dr A Olowofoyeku wrote:
Well, you have got a lot farther than I have ever got.
It took quite a bit of perseverence to get as far as I did! I spent my first three weeks trying to understand just enough Unixisms to get a 2.95.2 cross-C compiler built! :-)
I gave up on trying to build a Mingw compiler long ago and settled for using the Cygwin compiler with '-mno-cygwin' to produce Mingw programs.
I'd be happy to post here how I did it, if it'll further the cause of getting GPC to compile for NT. It actually wasn't too hard, as the majority of time I spent trying to dope out exactly what "configure" did in response to various combinations of --host, --target, and --build. Once I got all those straight, and with the help of a few symbolic links here and there, it all worked OK.
Your problem is probably due to things that are missing in the gcc Mingw libraries (and there are many of them).
I was wondering if the warning reference I quoted:
/usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:577: warning: `struct passwd' declared inside parameter list /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:577: warning: its scope is only this definition or declaration, which is probably not what you want.
was significant. I am using the latest 2.95.2 + some patches supplied by Mumit Khan at:
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/gcc.html
Perhaps this is checking something more stringently than the "standard" 2.95.2, and that gives the warning? I admit I don't know C that well, but isn't this a complaint about the source of "rts.c", rather than a complaint about a Mingw-included file?
But when I am more settled, I can send you a copy of my 'os-hacks.h' file. Frank can tell you where you need to '#include' it.
That would be wonderful, thanks! Please send it to my address on this message.
-- Dave