|
From: <je...@th...> - 2001-11-18 07:21:28
|
Hello,
Im trying to use mingw to build windows binaries with linux.
I am using debian gnu/linux. Im using the latest mingw package from debian unstable.
The compiler works fine, except for one problem, scanf does not work.
code using scanf compiles fine, and runs without errors, but the value read in by scanf doesnt get placed in a variable like it should. When i build the code with standard linux gcc it runs fine. here is the code im testing it with:
int main(void){
float foo = 0;
scanf("%f", &foo);
printf("%f\n", foo);
return(0);
}
no matter what value i give it, it always prints 0.00000. If i read in a string, the string ends up empty.
--
int a=10000,b,c=2800/* Jesse Crocker */,d,e,f[2801],g;main
(){for(;b-c;)f[b++]=/* qa...@ma... */a/5;for(;d=0,g=c*2;c
-=14,printf("%.4d",e/* http://www.phork.cx */+d/a),e=d%a)for(b=c;
d+=f[b]*a,f[b]=d%--g/* */,d/=g--,--b;d*=b);}
|