ftd2xx静态库链接错误 [英] ftd2xx static library link error

查看:132
本文介绍了ftd2xx静态库链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2017中处理DLL项目。该库为FTDI的ftd2xx库添加了一些功能。我按照
在构建项目时,出现以下错误:

当我单击第一个警告时,
这可以解决第一个警告,但链接错误仍然存​​在:
。解决方案是将 legacy_stdio_definitions.lib添加到链接器输入中。为此,请转到项目属性->链接器->输入,并将 legacy_stdio_definitions.lib添加到其他依赖项中。


I'm working on a DLL project in Visual Studio 2017. This library adds some functionality around the ftd2xx library from FTDI. I set up the project as described in this instruction. I'm linking against the static version of the ft2dxx library. The only difference between the instruction and my project is the selection of the Runtime Library. The instruction states (figure 2.16) that the Multi-threaded Debug Runtime library must be used. In my case, I selected the Multi-threaded Debug DLL (/MDd) option, because i'm working on an DLL (see the image below) When i build the project, I get the following errors: When i clicked on the first warning, this page opens. I changed the project properties as described on the webpage: This fixes the first warning, but the link errors still exists:

So, to conclude: I assume there is something wrong with the Runtime Library, used by the ftd2xx library, but I have no idea how to fix this. Any suggestions?

解决方案

I found the solution here. The solution is to add the 'legacy_stdio_definitions.lib' to the linker input. To do this, go to the project properties -> Linker -> Input and add 'legacy_stdio_definitions.lib' to the additional dependencies.

这篇关于ftd2xx静态库链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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