C语言错误--floating-point support not loaded
(2012-12-24 18:59:40)| 分类: C | 
floating-point support not loaded
The necessary floating-point library was not linked.
To fix by checking the following possible causes
1.The program was compiled or linked
with an option, such as /FPi87, 
2.A format string for
a 
3.The compiler minimizes a program's size by loading floating-point support only when necessary.The compiler cannot detect floating-point format specifications in format strings, so it does not load the necessary floating-point routines.
4.Use a floating-point
argument 
5.In a mixed-language program, a C library was specified before a FORTRAN library when the program was linked. Relink and specify the C library last.
未链接必需的浮点库。
通过检查下面的可能原因进行修复
- 
该程序通过选项(如 /FPi87,该选项要求有协处理器)被编译或链接,但该程序运行在一台未安装协处理器的计算机上。 
- 
printf_s 或 scanf_s 函数的格式字符串包含浮点格式规范,而该程序不包含任何浮点值或变量。 
- 
编译器仅当必要时才通过加载浮点支持以最小化程序大小。编译器无法检测到格式字符串中的浮点格式规范,因此编译器未加载必要的浮点例程。 
- 
使用浮点参数以符合浮点格式规范,或在程序的其他地方执行浮点赋值。该操作将导致加载浮点支持。 
- 
在由混合语言编写的程序中,当程序进行链接时在 FORTRAN 库之前指定了 C 库。重新链接并最后指定 C 库。 

 加载中…
加载中…