error LNK2001: unresolved external symbol "class ATL:: CTraceCategory

时间:2016-02-03 03:53:14

标签: c++ atl lnk2001

I got the same error as per this post below.

error LNK2001

someone replied "ATL uses ATLTRACE at debag-compilation. atlbase.h." What does this mean? Do I have to add atlbase.h to my dependency?

1 个答案:

答案 0 :(得分:1)

您需要在链接器依赖项中添加atls.lib(用于发行版配置)或atlsd.lib(用于调试配置)。

Right click your project -> Properties -> Linker -> Input -> Additional Dependencies

需要列出atls.lib(用于发布配置)或atlsd.lib(用于调试配置)。