<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">Resend with more information:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">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 “</span><span style="font-family:"Aptos",sans-serif">__imp__curl_slist_append” not found, the symbol
output from the “dumpbin” is </span><span style="font-family:"Aptos",sans-serif"> </span><span style="font-family:"Aptos",sans-serif">“__imp_curl_slist_append” .
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">Any idea how to fix this?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">From:
</span></b><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Fengting Chen via gdal-dev <gdal-dev@lists.osgeo.org><br>
<b>Date: </b>Monday, March 11, 2024 at 4:50</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black"> </span><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">PM<br>
<b>To: </b>gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject: </b>[External] : [gdal-dev] GDAL 3.8.4 build on windows failed at linking<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">GDAL 3.8.4 build on Windows from VS2015 x64 command prompt: “cmake –build .” throws the following error (there are more similar errors):
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">cpl_vsil_az.obj : error LNK2001: unresolved external symbol __imp__curl_slist_append [E:\gdal-3.8.4\build\GDAL.vcxproj]</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">cmake options has:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">set (GDAL_USE_CURL ON CACHE BOOL "" FORCE)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">set (CURL_INCLUDE_DIR "E:/SDK/curl-8.6.0_1-win64-mingw/include" CACHE PATH "" FORCE)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">set (CURL_LIBRARY_RELEASE "E:/SDK/curl-8.6.0_1-win64-mingw/bin/libcurl-x64.lib" CACHE FILEPATH "" FORCE)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">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. </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">Any idea why this error occurred?
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif">Thanks!</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>