Cannot Open File atls.lib

John Doe picture John Doe · Jun 20, 2012 · Viewed 22.6k times · Source

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.

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

Can anyone help a helpless programmer?

Thank you very much.

Answer

chalion picture chalion · Feb 18, 2016

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).

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