-2

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?

ObzidO
  • 11
  • 5
  • It would help if you (a) showed some code, and (b) changed the `alt` tag to `atl`. – dxiv Feb 03 '16 at 05:38
  • Possible duplicate of [What is an undefined reference/unresolved external symbol error and how do I fix it?](http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix) – Niall Feb 03 '16 at 07:07

1 Answers1

1

You need to add atls.lib (for release configuration) or atlsd.lib ( for debug configuration) in your linker dependencies.

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

There atls.lib (for release configuration) or atlsd.lib ( for debug configuration) needs to be listed.

Constantin
  • 8,721
  • 13
  • 75
  • 126
  • Hi, I have added atls.lib to the dependency for my release mode and still getting the error. – ObzidO Feb 04 '16 at 01:23