gflags_static.lib 无法解析的外部符号 __imp__PathMatchSpec

在用gflags库时生成提示

无法解析的外部符号 __imp__PathMatchSpec

 

解决办法:Add “shlwapi.lib” to “Project - Property - Linker - Input - Additional Dependencies”.

即 项目属性 -》链接器-》输入-》附加依赖项-》加上shlwapi.lib

 

参考:handong1587 and google groups

原文地址:https://www.cnblogs.com/VVingerfly/p/8032086.html