unresolved external symbol ATL::AtlWinModuleInit


It took me a long time to track down these link errors:


main.obj : error LNK2001: unresolved external symbol "long __stdcall ATL::AtlWinModuleInit(struct ATL::_ATL_WIN_MODULE70 *)" (?AtlWinModuleInit@ATL@@YGJPAU_ATL_WIN_MODULE70@1@@Z)


main.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)


The solution is to include atls.lib (for release builds) or atlsd.lib (for debug builds) in your linker dependencies.



This posting is provided "AS IS" with no warranties, and confers no rights.



 


 


 

Comments (1)
  1. Walter Gillett says:

    Thanks for posting this info! Saved me a lot of trouble. I set out today to learn how to write code to manipulate video, and it’s amazing how difficult and time-consuming it is just to find the right MSFT SDKs and get the examples compiled and working…

    Walter Gillett

Comments are closed.

Skip to main content