error LNK2019: unresolved external symbol SHInitExtraControls referenced?
问题 How can i resolve this error: Error 1 error LNK2019: unresolved external symbol SHInitExtraControls referenced in function "public: virtual int __cdecl CTestApp::InitInstance(void)" (?InitInstance@CTestApp@@UAAHXZ) Test.obj thanks 回答1: You need to link against aygshell.lib . Note that the MSDN page for SHInitExtraControls() says that aygshell.lib is the required library to use it. A LNK2019 usually means that you forgot to provide a definition of something. In this case, the definition of