LINK : fatal error LNK1181: cannot open input file ".\Debug\amqatic.lib"

  用VC6开发的应用程序,调用别人的dll文件,在Release下编译时出错,错误信息如下:

  “LINK : fatal error LNK1181: cannot open input file ".\Debug\amqatic.lib"”,求助了好多人都没有解决,

最后还是自己发现了问题,原来在将.lib文件加入工程时就是从Debug下加入进去的,所以IDE自然会到Debug下去找.lib文件了。

下面是查看工程中.lib文件的属性:

LINK : fatal error LNK1181: cannot open input file ".\Debug\amqatic.lib"_第1张图片

  修改路径后:

LINK : fatal error LNK1181: cannot open input file ".\Debug\amqatic.lib"_第2张图片

  重新编译程序,OK。

 

你可能感兴趣的:(LINK : fatal error LNK1181: cannot open input file ".\Debug\amqatic.lib")