Ok, what am I doing wrong now ;-) win32 aint working

Hi there…

I’m on a linux box (PII-266, kernel 2.1.119).

I’ve downloaded the file:
http://www.devolution.com/~slouken/projects/SDL/Xmingw32/Xmingw32-linux-x86.tar.gz

I did a:
cd /usr
tar -zxvf ~/Xmingw32-linux-x86.tar.gz

then an:
export PATH=/usr/win32/i686-pc-mingw32/bin:$PATH

but gcc (and gcc -v shows it’s the correct compiler) won’t compile this:

#include <stdio.h>
*** begin file ***
int main(void)
{

}
*** end file ***

It give the following errors:
In file included from test.c:1:
/usr/win32/i686-pc-mingw32/include/stdio.h:0: numeric constant with no
digits
/usr/win32/i686-pc-mingw32/include/stdio.h:0: warning: unrecognized text
at end of #line
In file included from /usr/win32/i686-pc-mingw32/include/stdio.h:38,
from test.c:1:
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:0:
numeric constant with no digits
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:0:
warning: unrecognized text at end of #line
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:10:
numeric constant with no digits
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:10:
invalid #line
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:26:
numeric constant with no digits
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:26:
numeric constant with no digits
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:26:
invalid #line
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:64:
numeric constant with no digits
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:64:
invalid #line
/usr/win32/lib/gcc-lib/i686-pc-mingw32/egcs-2.90.29/include/stddef.h:102:
parse error at null character

Can anyone explain this one?

:slight_smile:
Peter

It give the following errors:
In file included from test.c:1:
/usr/win32/i686-pc-mingw32/include/stdio.h:0: numeric constant with no
digits

This is a problem that a bunch of people have reported, and the only
thing in common is that they have a RedHat Linux system.

I just got access to a RedHat Linux system, and am going to check it out
when I get a chance.

Anybody know what’s going on?

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

I’ve downloaded the file:
http://www.devolution.com/~slouken/projects/SDL/Xmingw32/Xmingw32-linux-x86.tar.gz

but gcc (and gcc -v shows it’s the correct compiler) won’t compile this:

Did I already reply to this?

Try grabbing the glibc version of the cross-compiler from:

http://www.devolution.com/~slouken/SDL/Xmingw32/

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/