<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thanks to everybody and specially to Andrew and Abel.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I will try to get some advance into this and I will share my advances in case it is helpful for anyone else.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Regards !</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">El lun, 2 jun 2025 a las 16:46, Abel Pau (<<a href="mailto:a.pau@creaf.cat">a.pau@creaf.cat</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg4835289659300692999">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Daniel,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
when I want to compile from windows using vcpkg I do:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
cd d:\Github\gdal <-- whereever you have the gdal code</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Debug<br>
cmake --build build --config Debug</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
and make sure your environment variable PROJ_DATA is pointing to C:\dev\vcpkg\vcpkg\buildtrees\proj\x64-windows-dbg\data</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
(perhaps there are other things)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I hope it helps.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_4835289659300692999appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_4835289659300692999divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>> de part de Andrew Bell via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
<b>Enviat el:</b> dilluns, 2 de juny de 2025 16:01<br>
<b>Per a:</b> Daniel Perez Rodriguez <<a href="mailto:dpr.1980@gmail.com" target="_blank">dpr.1980@gmail.com</a>><br>
<b>A/c:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a> <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
<b>Tema:</b> Re: [gdal-dev] Linking issue in Windows</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Daniel,
<div><br>
</div>
<div>Symbols that start with "__" are reserved for system libraries. It appears that you're not linking the C++ standard library or are linking with an incompatible version. GDAL requires C++17 support.</div>
<div><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Mon, Jun 2, 2025 at 5:25 AM Daniel Perez Rodriguez via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>
<div style="font-family:"trebuchet ms",sans-serif">Good morning everyone.</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
My name is Daniel (first message here) from Spain so I hope I can explain my problem properly.</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif">I am working in a C++ project, using gdal in Windows and getting it from vcpkg, using cmake and Visual Studio 2022.</div>
<div style="font-family:"trebuchet ms",sans-serif">From the last days, after an update of my development machine I am having a blocking issue compiling the project, to be a bit more precise: a linking issue.  Here is my configuration and
 at the end I will put the errors:</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif"><b><u>DEVELOPMENT ENVIRONMENT:</u></b></div>
<div style="font-family:"trebuchet ms",sans-serif">Microsoft Visual Studio Professional 2022 Version 17.13.6<br>
VisualStudio.17.Release/17.13.6+35931.197<br>
Microsoft .NET Framework Version 4.8.09032<br>
<br>
Installed Version: Professional<br>
<br>
Microsoft Visual C++ 2022<br>
<br>
<a href="http://ASP.NET" target="_blank">ASP.NET</a> and Web Tools   17.13.124.35287<br>
Azure App Service Tools v3.0.0   17.13.124.35287<br>
<br>
C# Tools   4.13.0-3.25167.3+73eff2b5de2ad38ec602c0a9e82f9125fb85992b<br>
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.<br>
<br>
GitHub Copilot   17.13.444.19527<br>
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.<br>
<br>
Linux Core Dump Debugging   1.0.9.35825<br>
Enables debugging of Linux core dumps.<br>
<br>
Microsoft JVM Debugger   1.0<br>
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines<br>
<br>
NuGet Package Manager   6.13.2<br>
NuGet Package Manager in Visual Studio. For more information about NuGet, visit <a href="https://docs.nuget.org/" target="_blank">
https://docs.nuget.org/</a><br>
<br>
Qt Visual Studio Tools   3.3.1.1<br>
This official Qt Group extension, Qt Visual Studio Tools, integrates Qt development tools into Microsoft Visual Studio 2022, enabling developers to use their familiar Windows environment without worrying about Qt-related build steps or tools.<br>
<br>
SonarQube for Visual Studio   8.16.0.12791<br>
SonarQube for Visual Studio is an extension to your favorite IDE that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.<br>
<br>
TypeScript Tools   17.0.31211.2001<br>
TypeScript Tools for Microsoft Visual Studio<br>
<br>
Visual Basic Tools   4.13.0-3.25167.3+73eff2b5de2ad38ec602c0a9e82f9125fb85992b<br>
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.<br>
<br>
Visual C++ for Linux Development   1.0.9.35825<br>
Visual C++ for Linux Development<br>
<br>
Visual Studio IntelliCode   2.2<br>
AI-assisted development for Visual Studio.</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif"><b style="text-decoration-line:underline">VCPKG.JSON</b> (special attention please to gdal and proj entries)</div>
<div style="font-family:"trebuchet ms",sans-serif">{<br>
"version": "0.0.0",<br>
"builtin-baseline": "6f29f12e82a8293156836ad81cc9bf5af41fe836",<br>
"dependencies": [<br>
{"name": "boost-date-time", "version>=": "1.86.0"},<br>
{"name": "boost-fiber", "version>=": "1.86.0"},<br>
{"name": "boost-filesystem", "version>=": "1.86.0"},<br>
{"name": "boost-geometry", "version>=": "1.86.0"},<br>
{"name": "boost-headers", "version>=": "1.86.0"},<br>
{"name": "boost-iostreams", "version>=": "1.86.0"},<br>
{"name": "boost-property-tree", "version>=": "1.86.0"},<br>
{"name": "boost-regex", "version>=": "1.86.0"},<br>
<b><i>{"name": "gdal", "version>=": "3.10.0", "default-features": false},<br>
</i></b>{"name": "gtest", "version>=": "1.15.2"},<br>
{"name": "libgeotiff", "version>=": "1.7.3"},<br>
{"name": "lodepng", "version>=": "2021-12-04"},<br>
{"name": "nlohmann-json", "version>=": "3.11.3"},<br>
<i><b>{"name": "proj", "version>=": "9.5.1", "default-features": false},<br>
</b></i>{"name": "rapidxml", "version>=": "1.13#7"},<br>
{"name": "shapelib", "version>=": "1.6.1"},<br>
{"name": "sqlite3", "version>=": "3.48.0"},<br>
{"name": "units", "version>=": "2.3.3"},<br>
{"name": "zlib", "version>=": "1.3.1"}<br>
]<br>
}</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif"><b><u>ERROR OUTPUT:</u></b></div>
<br clear="all">
</div>
<div>
<div style="font-family:"trebuchet ms",sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">44>   Creating library C:/Users/*****/Release/project.lib and object C:/Users/*****/Release/project.exp</span></div>
44>proj.lib(vgridshift.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(oputils.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(concatenatedoperation.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(coordinateoperationfactory.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(datum.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(crs.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(singleoperation.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(internal.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(io.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(factory.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrdxf_leader.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(4D_api.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(c_api.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>proj.lib(grids.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(parsexsd.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrpgdumplayer.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrjsonfgwritelayer.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrdxf_dimension.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(cbandinterleavedchannel.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(asciitiledir.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(binarytiledir.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(gmlreader.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(cpcidskblockfile.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrwaspdatasource.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrgmldatasource.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrgeojsonutils.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(envidataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(cpl_vsil_abstract_archive.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(gdalargumentparser.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(gtiffsplitbitmapband.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(pdfcreatecopy.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(marfa_dataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(mrfdrivercore.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(zarr_v2_group.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(vrtderivedrasterband.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(pcidskcreate.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(pdsdrivercore.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogr_srs_erm.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(gdalpamproxydb.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrcurvecollection.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(gdalsubdatasetinfo.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(gtiffdataset_read.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(cpl_vsi_mem.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(cpl_vsil_gzip.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrgeometrycollection.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrutils.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(mrf_util.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(deriveddataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(stacitdataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(snaptiffdriver.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(vicardataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(gribdataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(esric_dataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(safedataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(cplstring.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(ogrspatialreference.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(pdsdataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(pds4dataset.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1<br>
44>gdal.lib(marfa_dataset.cpp.obj) : error LNK2019: unresolved external symbol __std_find_last_of_trivial_pos_1 referenced in function "enum CPLErr __cdecl GDAL_MRF::Init_Raster(struct GDAL_MRF::ILImage &,class GDAL_MRF::MRFDataset *,struct CPLXMLNode *)" (?Init_Raster@GDAL_MRF@@YA?AW4CPLErr@@AEAUILImage@1@PEAVMRFDataset@1@PEAUCPLXMLNode@@@Z)<br>
44>proj.lib(filemanager.cpp.obj) : error LNK2001: unresolved external symbol __std_find_last_of_trivial_pos_1<br>
44>gdal.lib(ilwisdataset.cpp.obj) : error LNK2001: unresolved external symbol __std_find_last_of_trivial_pos_1<br>
44>gdal.lib(grddataset.cpp.obj) : error LNK2001: unresolved external symbol __std_find_last_of_trivial_pos_1<br>
44>gdal.lib(mrf_util.cpp.obj) : error LNK2001: unresolved external symbol __std_find_last_of_trivial_pos_1<br>
44>gdal.lib(pcidskcreate.cpp.obj) : error LNK2001: unresolved external symbol __std_find_last_of_trivial_pos_1<br>
44>gdal.lib(vrtderivedrasterband.cpp.obj) : error LNK2019: unresolved external symbol __std_find_end_1 referenced in function "char const * __cdecl std::_Find_end_vectorized<char const ,char const >(char const * const,char const * const,char const * const,unsigned
 __int64)" (??$_Find_end_vectorized@$$CBD$$CBD@std@@YAPEBDQEBD00_K@Z)<br>
44>gdal.lib(gdal_mdreader.cpp.obj) : error LNK2001: unresolved external symbol __std_find_end_1<br>
44>gdal.lib(ogrdxflayer.cpp.obj) : error LNK2001: unresolved external symbol __std_find_end_1<br>
44>proj.lib(coordinateoperationfactory.cpp.obj) : error LNK2001: unresolved external symbol __std_find_end_1<br>
44>gdal.lib(ogropenfilegdblayer_write.cpp.obj) : error LNK2019: unresolved external symbol __std_search_2 referenced in function "wchar_t const * __cdecl std::_Search_vectorized<wchar_t const ,wchar_t const >(wchar_t const * const,wchar_t const * const,wchar_t
 const * const,unsigned __int64)" (??$_Search_vectorized@$$CB_W$$CB_W@std@@YAPEB_WQEB_W00_K@Z)<br>
44>gdal.lib(gnmgraph.cpp.obj) : error LNK2019: unresolved external symbol __std_remove_8 referenced in function "__int64 * __cdecl std::_Remove_vectorized<__int64,__int64>(__int64 * const,__int64 * const,__int64)" (??$_Remove_vectorized@_J_J@std@@YAPEA_JQEA_J0_J@Z)<br>
44>C:/Users/*****/Release/project.exe : fatal error LNK1120: 5 unresolved externals<br>
</div>
<span>--</span>
<div><br>
</div>
<div>
<div style="font-family:"trebuchet ms",sans-serif">Libraries coming from VCPKG and the ones from the project are correctly built but the final linkage fails.</div>
<br>
<div dir="ltr">
<div dir="ltr">
<div>
<div style="font-family:"trebuchet ms",sans-serif">So any hint about where these "error LNK2001: unresolved external symbol __std_search_1" came from ?</div>
<br>
</div>
<div>
<div style="font-family:"trebuchet ms",sans-serif">Thanks in advance !</div>
<br>
</div>
<div>
<div style="font-family:"trebuchet ms",sans-serif">PS: sorry if this is not the correct channel to communicate these doubts and correct me in that case.</div>
<div style="font-family:"trebuchet ms",sans-serif">PPS: don't hesitate for any further information if you need it.</div>
<br>
</div>
<div><br>
</div>
<b><font size="4" face="trebuchet ms, sans-serif" color="#444444">Daniel Pérez Rodríguez</font></b>
<div><u style="color:rgb(153,153,153);font-family:"trebuchet ms",sans-serif"><a href="http://daniteleco.github.io" target="_blank">daniteleco.github.io</a></u></div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote>
</div>
<div><br clear="all">
</div>
<div><br>
</div>
<span>-- </span><br>
<div dir="ltr">
<div dir="ltr">
<div>Andrew Bell</div>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>
</div>
</div>

</div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br></div><b><font size="4" face="trebuchet ms, sans-serif" color="#444444">Daniel Pérez Rodríguez</font></b><div><font face="trebuchet ms, sans-serif" color="#666666"><i>(+34) 659 49 89 31</i></font></div><div><font color="#999999" face="trebuchet ms, sans-serif"><u><a href="http://daniteleco.github.io" target="_blank">daniteleco.github.io</a></u></font><br></div></div></div>