无法打开输入文件“Delayimp.lib" [英] cannot open input file 'Delayimp.lib'
问题描述
我正在 Visual Studio 2013(操作系统:Windows 7)下编译一个项目.该项目是使用平台工具集Visual Studio 2008 (v90)"编译的.在选项中,我设置了一个 dll 延迟加载,如下所示:
I am compiling a project under Visual Studio 2013 (OS: Windows 7). The Project is compiled with the Platform Toolset "Visual Studio 2008 (v90)". In the options I have set a dll to be loaded delayed like this:
/DELAYLOAD:"PluginPost.dll"
/DELAYLOAD:"PluginPost.dlll"
我得到的错误如下:
1>链接:致命错误 LNK1181:无法打开输入文件Delayimp.lib"
1>LINK : fatal error LNK1181: cannot open input file 'Delayimp.lib'
现在我的问题如下.我知道我需要 Delayimp.lib 才能加载延迟的 dll,但是我在哪里可以找到这个 Delayimp.lib?
And now my question is the following. I know that I need the Delayimp.lib in order to load a dll delayed, but where do I find this Delayimp.lib?
预先感谢您的任何提示.
Thank you in advance for any hints.
附注.我正在编译一个 64 位应用程序.
PS. I am compiling a 64 Bit application.
推荐答案
确保将 ;C:\Windows\System32
添加到 Control Panel\System and Security 的 PATH 系统变量中\系统 ->高级系统设置 ->环境变量
.还要注意每个路径之间不要使用不必要的空格.
Make sure to add ;C:\Windows\System32
to your PATH system variable at Control Panel\System and Security\System -> Advanced system settings -> Environment Variables
. Also pay attention to not use unnecessary spaces between each path.
参考:
这篇关于无法打开输入文件“Delayimp.lib"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!