<div dir="ltr"><div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Good morning everyone.</div><div class="gmail_default" 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 class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" 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 class="gmail_default" 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 class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><b><u>DEVELOPMENT ENVIRONMENT:</u></b></div><div class="gmail_default" 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">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/">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 class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" 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 class="gmail_default" 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 class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><b><u>ERROR OUTPUT:</u></b></div><br clear="all"></div><div><div class="gmail_default" 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 class="gmail_signature_prefix">--</span><div><br></div><div><div class="gmail_default" 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" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div class="gmail_default" 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 class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Thanks in advance !</div><br></div><div><div class="gmail_default" 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 class="gmail_default" 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>