将Fortran代码链接到VS 2013时出错 [英] Errors while linking Fortran code to VS 2013

查看:160
本文介绍了将Fortran代码链接到VS 2013时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello, 

解决方案

似乎没有提供C运行时库的必需导入库之一作为链接器的输入。  CRT的VS2013导入库可以在
设置(VERBOSE:LIB)获取librar列表由链接器搜索。 通过检查列表,您可以看到搜索中是否缺少msvcrt.lib。


要在IDE中设置选项,项目选项将如下所示:






Hello, 

解决方案

It seems that one of the required import libraries for the C runtime library are not being provided as input to the linker.  The VS2013 import libraries for the CRT can be found at CRT Library Features

In a release build the import library would be msvcrt.lib, a debug build would use msvcrtd.lib

Is the VS2013 build using the NODEFAULTLIB setting?

If default libraries have been omitted from the link, the VS2013 project linker options would look like this-

You can also use the VERBOSE setting (VERBOSE:LIB) to get a listing of the libraries searched by the linker.  By checking the listing you could see if msvcrt.lib was missing from the search.

To set the option in the IDE, the project options would look like this -



这篇关于将Fortran代码链接到VS 2013时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆