如何解决链接错误:“未解析的外部符号__imp__PathMakeSystemFolderA @ 4"?

问题描述:

在发布PathMakeSystemFolder()函数的版本时,出现以下链接错误:


On release build for PathMakeSystemFolder() function I got the following link error:



错误LNK2001:无法解析的外部符号__imp__PathMakeSystemFolderA @ 4

error LNK2001: unresolved external symbol __imp__PathMakeSystemFolderA@4


请帮助我解决该错误.


Please help me to fix such error.

您也应该在发行版中与Shlwapi.lib链接.
检查项目设置.
:)
You should link with Shlwapi.lib in release build too.
Check project settings.
:)