scanf doesn't work

Thu Jun 18 14:16:00 GMT 2009

I'm pretty sure this is an issue with the cross-compiler (sorry if it's not).

I successfully built a cross-compiler for the ARM with crosstool-ng and
everything works fine. However, when I want to get user float input with
scanf(), it misses the negative sign, even though it works fine with
integers. For example, 3.5 and -3.5 are both read in as 3.5.

I compiled the same test program for my desktop and it works correctly (so
it's not because of incorrect usage of scanf).

How do I fix this? Is this a bug in glibc?

Thanks in advance!
View this message in context:
Sent from the Sourceware - crossgcc list mailing list archive at

For unsubscribe information see

More information about the crossgcc mailing list