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

Posted VVingerfly

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gflags_static.lib 无法解析的外部符号 __imp__PathMatchSpec相关的知识,希望对你有一定的参考价值。

在用gflags库时生成提示

无法解析的外部符号 __imp__PathMatchSpec

 

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

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

 

参考:handong1587 and google groups

以上是关于gflags_static.lib 无法解析的外部符号 __imp__PathMatchSpec的主要内容,如果未能解决你的问题,请参考以下文章

无法解析的外部符号 C++

无法解析的外部符号

ACE编程,无法解析外部符号

error LNK2001: 无法解析的外部符号

vs2010 error:1个无法解析的外部命令

error LNK2019: 无法解析的外部符号