Der Format-Spezifier (sprintf, printf, scanf) vom normalen C / C++ ist ein absolutes high-light. Wenn du das nicht hast, ist das ganze mühsam.
Note that these functions are not located in the default library, libc.a, but in the mathematical library, libm.a. So when linking the application, the -lm option needs to be specified.
Das hast du berücksichtigt ?

Aus dem Bauch heraus kann ich dir jetzt nix anbieten. Ich muß mich da schlau machen.