我在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.