我在编译cimg代码时遇到了这一外部符号错误。测试库的基本代码
我通过以下命令使用Visual Studio命令提示符:
cl test.cpp /link user32.lib gdi32.lib
我不断收到此错误:
test.obj : error LNK2019: unresolved external symbol
__imp__SHGetSpecialFolderPathA@16 referenced in function "char const * __cdecl cimg_library::cimg::programfiles_path(char const * const,bool)" (? programfiles_path@cimg@cimg_library@@YAPBDQBD_N@Z)
test.exe : fatal error LNK1120: 1 unresolved externals