浮点库链接,
只要在 输入语句之前加 一个显式的浮点操作即可 ...
早期为了节省资源,
在默认情况下是不链接浮点库的。
(也就是在没有显式浮点操作的情况下,浮点库将不被链接,使用浮点操作就会发生错误)
[quote]
Q. I get a "floating point formats not linked" message when I run
my program. What can I do about it?
A. Floating point formats (for scanf() and related functions) are
not always linked, for savings in executable size. To force their
inclusion, put the following somewhere in your source files:
extern unsigned _floatconvert;
#pragma extref _floatconvert
[/quote]
本文介绍了解决运行程序时出现浮点格式未链接错误的方法。通过在源文件中加入特定的代码,可以强制链接浮点库,避免因节省可执行文件大小而导致的浮点操作错误。
235

被折叠的 条评论
为什么被折叠?



