我在Visual Studio C ++项目中的哪里输入DLL依赖关系? [英] Where do I input DLL dependencies in Visual Studio C++ project?

查看:93
本文介绍了我在Visual Studio C ++项目中的哪里输入DLL依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将一些在Linux和Mac上运行的Qt项目文件(.pro)转换为Visual Studio项目文件(.vcproj).Qt Visual Studio加载项将所有依赖DLL的东西都转换为罚款.我在Visual Studio 2008中将它们放在哪里?

I am converting some Qt project files (.pro) that run on Linux and Mac into Visual Studio project files (.vcproj) The Qt Visual Studio add-in converted everything fine except the DLL dependencies. Where do I put these in Visual Studio 2008?

如果将DLL放在配置属性">链接器">输入">其他依赖项"中,则会得到:

If I put the DLLs in Configuration Properties > Linker > Input > Additional Dependencies, I get:

fatal error LNK1107: invalid or corrupt file: cannot read at 0xABC

动态链接的依赖关系去哪里了?

Where do dynamically-linked dependencies go?

推荐答案

您可能要检查您需要在链接时指定相应的.lib文件.不是dll.

You need to specify the corresponding .lib file at link time. not the dll.

这篇关于我在Visual Studio C ++项目中的哪里输入DLL依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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