c++ - error LNK2019: unresolved external symbol SHInitExtraControls referenced? -
how can resolve 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
you need link against aygshell.lib
. note msdn page shinitextracontrols()
says aygshell.lib
required library use it.
a lnk2019 means forgot provide definition of something. in case, definition of shinitextracontrols()
located in aygshell.lib
. without it, linker complain when attempt use shinitextracontrols()
.
to link against aygshell.lib
in visual studio, go project --> properties --> linker --> input --> additional dependencies
type aygshell.lib
in box.
Comments
Post a Comment