浮点库的连接问题(针对有的时候scanf("%f",&fn);出现的异常)
2006-07-16 14:59
603 查看
浮点库链接,
只要在 输入语句之前加 一个显式的浮点操作即可 ...
早期为了节省资源,
在默认情况下是不链接浮点库的。
(也就是在没有显式浮点操作的情况下,浮点库将不被链接,使用浮点操作就会发生错误)
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
只要在 输入语句之前加 一个显式的浮点操作即可 ...
早期为了节省资源,
在默认情况下是不链接浮点库的。
(也就是在没有显式浮点操作的情况下,浮点库将不被链接,使用浮点操作就会发生错误)
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
相关文章推荐
- 嵌入式 关于scanf("%c",&ch)实现拦截时候出现直接跳过的问题
- hibernate查询的时候出现“列名 "&&"无效”的问题
- 华为 P1 wifi 连接显示"身份验证出现问题"解决办法
- 解决ASP.NET连接Oraclei数据库出现"无法加载DLL(oci.dll)"异常
- 解决连接MySQL时出现securityException异常,并且会有"That assembly does not allow partially trusted callers"的异常信息
- MSSQL异常:JDBC连接SqlServer2000出现"Connection refused: connect"解决方案
- Flex使用Weborb与.NET交互的问题:使用DataSet出现"提供的索引超出范围"异常
- 测试的时候浏览出现 "WebDev.WebServer.exe 遇到问题需要关闭。我们对此引起的不便表示抱歉。
- Android Studio在连接手机时候,出现"Instant Run requires 'Tools..."不能安装软件的问题
- 运行到scanf("%f, &weight");就开始出现问题
- java后台服务器向手机端返回Json, 使用 "net.sf.json.JSONObject" 解析出现的异常问题
- mysql front v5.1 现在连接时出现异常“程序注册时间到期了,程序将被限制"解决方案
- Getting error "No subject alternative names" when doing secure URL connection(针对处理https连接的安全异常)(转:http://www.coderanch.com/t/134
- Delphi2009输入"."后不出现助记输入选择框的问题!
- 链接sqlserver的时候出现 "Error establishing socket" 错误的处理办法.
- ubuntu12.04连接服务器的时候出现错误“terminate called after throwing an instance of 'std::runtime_error' what(”
- 求助 这是我的mfc下一个修改数据库信息的一段代码,里面执行到m_Ado.m_pRecordset->Update(); 这句话的时候就会出现异常,而且修改不了数据库内的信息。
- linux&UNIX下WebSphere数据源连接出现java.lang.UnsatisfiedLinkError: SQLConnect问题的解决方法
- 1.android入门不能忽视的问题之出现“ClassNotFoundException: Didn't find class "...Activity" on path: DexPathLis”错误
- java 连接 mysql 数据库"javax.servlet.ServletException: org.gjt.mm.mysql.Driver"是什么问题,怎样解决?