vs2019编译gdal3.1.0报错 (filemanager.obj) : error LNK2001: 无法解析的外部符号 __imp_SHGetFolderPathW

搜索找到

https://stackoverflow.com/questions/24619169/lnk2019-unresolved-external-symbol-shgetfolderpathw

应为添加shell32.lib依赖,从Windows Kits目录搜索到该文件

 

 拷贝到vs2019项目x64 lib目录

 

 修改nmake.opt,将shell32.lib添加至

 

可编译成功。

 

Tips:

查看msvc版本

 

posted @ 2020-06-23 09:33  zgcx  阅读(784)  评论(0编辑  收藏  举报