<div dir="ltr">I don't think anyone has cared about linking curl as a static lib.  We also haven't supported VS 2017 unless you're building it yourself.  I think you're on your own on this one.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 19, 2018 at 8:11 AM Mateusz Loskot <<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Today I enountered a problem while building PDAL with<br>
cURL enabled using VS2017 on Windows.<br>
<br>
Everything compiled, but I got a bunch of linker errors<br>
LNK2019 unresolved external symbol<br>
for cURL's calls being unresolved and referenced by arbiter.<br>
<br>
BTW, static built libcurl.lib I passed to CMake was passed to linker.<br>
<br>
The workaround that worked for me was to edit vendor/arbiter/arbiter.hpp<br>
and add #define CURL_STATICLIB in here:<br>
<br>
#ifdef ARBITER_CURL<br>
#define CURL_STATICLIB<br>
#include <curl/curl.h><br>
#else<br>
typedef void CURL;<br>
#endif<br>
<br>
Has anyone experienced that?<br>
<br>
There seem to be no CMake option or define expected by<br>
either PDAL or Arbiter to tell those to use static cURL<br>
and stick the CURL_STATICLIB define before curl.h include.<br>
<br>
There seem to be nothing related to use of static cURL<br>
in the docs or AppVeyor scripts.<br>
<br>
Best regards,<br>
-- <br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" rel="noreferrer" target="_blank">http://mateusz.loskot.net</a><br>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>