简体   繁体   English

链接器错误构建GDAL VS2017

[英]Linker Error Building GDAL VS2017

I'm trying to build GDAL using the 64-bit developer command prompt for VS2017. 我正在尝试使用VS2017的64位开发人员命令提示符来构建GDAL。 When I try to run the nmake command on the makefile, I get the following fatal error: 当我尝试在makefile上运行nmake命令时,出现以下致命错误:

odbccp32.lib(dllload.obj) : error LNK 2019: unresolved external symbol _vsnwprintf_s
referenced in function StringCchPrintfW
gdal202.dll : fatal error LNK1120: 1 unresolved externals

I found another question that addresses the exact same issue, but on MSVC 2015. I checked the nmake.opt file, and it already had the MSVC 2015 solution implemented. 我在MSVC 2015上发现了另一个问题 ,该问题可以解决完全相同的问题。我检查了nmake.opt文件,它已经实现了MSVC 2015解决方案。 Any guidance on how to resolve this issue would be appreciated. 任何有关如何解决此问题的指导将不胜感激。

确保像这样运行nmake

nmake /f makefile.vc devinstall MSVC_VER=1900

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM