Resend with more information:

I am trying to build GDAL 3.8.4 on windows under VS2015. The build failed at 
linking stage that a bunch of external symbols not found, specifically the 
symbols in libproj, libcurl. I checked the dll library stub .lib for libproj 
and libcurl using “dumpbin” and found the symbols in the library a little 
different, for example the linker error shows “__imp__curl_slist_append” not 
found, the symbol output from the “dumpbin” is  “__imp_curl_slist_append” .

Any idea how to fix this?

Thanks!

From: gdal-dev <gdal-dev-boun...@lists.osgeo.org> on behalf of Fengting Chen 
via gdal-dev <gdal-dev@lists.osgeo.org>
Date: Monday, March 11, 2024 at 4:50 PM
To: gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org>
Subject: [External] : [gdal-dev] GDAL 3.8.4 build on windows failed at linking
GDAL 3.8.4 build on Windows from VS2015 x64 command prompt: “cmake –build .” 
throws the following error (there are more similar errors):

cpl_vsil_az.obj : error LNK2001: unresolved external symbol 
__imp__curl_slist_append [E:\gdal-3.8.4\build\GDAL.vcxproj]

cmake options has:

set (GDAL_USE_CURL                ON   CACHE  BOOL "" FORCE)
set (CURL_INCLUDE_DIR             "E:/SDK/curl-8.6.0_1-win64-mingw/include" 
CACHE PATH "" FORCE)
set (CURL_LIBRARY_RELEASE         
"E:/SDK/curl-8.6.0_1-win64-mingw/bin/libcurl-x64.lib" CACHE FILEPATH "" FORCE)

libcurl-x64.lib is the DLL stub. Using dumpbin on libcurl-x64.lib shows that 
“__imp_curl_slist_append” is available. But the linker error is 
“__imp__curl_slist_append” not found. There is an extra “_” in it.

Any idea why this error occurred?

Thanks!


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/gdal-dev__;!!ACWV5N9M2RV99hQ!Mv-sh8eQ2jo_N3-nZy6s392WFrOalCR58cXU5p9P7ZwM5-QWgVx44pfJ0Ymv91aDLeQ751dU4nzd4KWpWzMzqNLD$
 
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to