如何从VC ++中的链接器命令行参数中排除.lib文件 [英] How to exclude .lib file from linker command line argument in VC++

查看:94
本文介绍了如何从VC ++中的链接器命令行参数中排除.lib文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编译一个vc ++程序,该程序显示以下错误 error LNK1104: cannot open file 'D:\Visual Studio 2010\Projects\credentialproviders\Win32\Debug\Helpers.lib'

I am compiling a vc++ program which is showing below error error LNK1104: cannot open file 'D:\Visual Studio 2010\Projects\credentialproviders\Win32\Debug\Helpers.lib'

我如何从链接器命令行参数中删除该Helpers.lib文件引用,因为在项目设置->链接器->命令行中,它处于readonly模式,因此我无法对其进行编辑以将其删除那条线.我正在使用Visual Studio 2010.

how i can remove that Helpers.lib file reference from linker command line argument because in project settings->linker->commandline its in readonly mode and I can't edit this to remove that line. I am using Visual Studio 2010.

谢谢

推荐答案

如果Linker-> Input-> Additional Dependencies中未引用此库,请检查Project Dependencies,并删除对porject Helpers的任何依赖.也有可能由#pragma comment(lib, "Helpers)

if this lib is not referenced in Linker->Input->Additional Dependencies, so check Project Dependencies, and remove any dependency on porject Helpers. also it's possible that this linking is done from code by #pragma comment(lib, "Helpers)

这篇关于如何从VC ++中的链接器命令行参数中排除.lib文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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