无法打开文件 atls.lib [英] Cannot Open File atls.lib

查看:52
本文介绍了无法打开文件 atls.lib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的硬盘中有 atls.lib,但我无法将它链接到我的 Visual Studio 项目中.我知道 atls.lib 是一个 ATL 特定的库文件,我有所有的 ATL 文件/头文件/库.但是,我仍然无法链接它们.

I have atls.lib in my hard drive, but I can't link it into my Visual Studio project. I know that atls.lib is an ATL specific library file, and I have all the ATL files/headers/libraries. However, I still can't link them.

链接:致命错误 LNK1104:无法打开文件 'atls.lib'

LINK : fatal error LNK1104: cannot open file 'atls.lib'

谁能帮助一个无助的程序员?

Can anyone help a helpless programmer?

非常感谢.

推荐答案

就我而言,问题是缺少 x64 的 ATL/MFC 库,我不得不将它们添加到 Visual Studio 安装程序中(这是一个开源项目,所以我不知道有这个要求).

In my case the problem was missing ATL/MFC libraries for x64, I had to add them in the Visual Studio installer (it was an open source project, so I wasn't aware of the requirement).

再一次,无价的 procmon 完成了这项工作:
虽然 atls.lib 位于 $(VCInstallDir)atlmfclib 下,但链接器查看了 $(VCInstallDir)atlmfclibamd64.

Once again, the invaluable procmon did the job:
While atls.lib was found under $(VCInstallDir)atlmfclib the linker looked in $(VCInstallDir)atlmfclibamd64.

这篇关于无法打开文件 atls.lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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