*** DISCLAIMER: The information on these pages is not an official instruction or documentation. No responsibility will be taken. Use at your own risk. ***

Tuesday, August 15, 2017

why does vbcc's printf()/snprintf()... not respect %f in format strings?

using printf("%f", 1.2);
instead of

Possible reasons:
no math lib included

Possible solutions:
- add -lmieee or -lmsoft (or other math library -> see vbcc manual) to list of compiler options
- put -lmieee (or whatever math lib you're using) before -lvc in list of compiler libs options

No comments:

Post a Comment

Your comment will published after it has been reviewed.