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

在用gflags库时生成提示

无法解析的外部符号 __imp__PathMatchSpec

 

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

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

 

参考:handong1587 and google groups

posted @ 2017-12-13 11:45  VVingerfly  阅读(1002)  评论(1编辑  收藏  举报