<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Which compiler and compiler version do you use ? It is likely it
      is too old and doesn't fully support C++17<br>
    </p>
    <div class="moz-cite-prefix">Le 29/04/2025 à 23:18, Fengting Chen
      via gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:PH0PR10MB70616DD21AC2D687C06F6AE193802@PH0PR10MB7061.namprd10.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator"
        content="Microsoft Word 15 (filtered medium)">
      <style>@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: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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt">Hi, I am
            trying to build GDAL from the master branch, but got the
            following error:
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">[ 46%]
            Building CXX object
            alg/CMakeFiles/alg.dir/gdal_interpolateatpoint.cpp.o<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">In file
            included from
            /scratch/gdal/gdal/alg/gdal_interpolateatpoint.cpp:20:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">/scratch/gdal/gdal/gcore/gdal_vectorx.h:
            In member function ?~@~Xgdal::         VectorX<T,
            N>::self_type gdal::VectorX<T, N>::operator+(T)
            const?~@~Y:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">/scratch/gdal/gdal/gcore/gdal_vectorx.h:173:44:
            error: cannot deduce template   arguments for ?~@~Xplus?~@~Y
            from ()<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">         
            return operatorImpl(arg, std::plus());<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">                                            
            ^<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">My
            configuration is: <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--   Target
            system:             Linux<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            Installation directory:    /usr/local<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--   C++
            Compiler type:         GNU<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--   C
            compile command line:     /bin/cc<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--   C++
            compile command line:   /bin/c++<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">-- <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            CMAKE_C_FLAGS:               -fvisibility=hidden<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            CMAKE_CXX_FLAGS:               -fvisibility=hidden<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            CMAKE_CXX17_STANDARD_COMPILE_OPTION:              -std=c++17<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            CMAKE_CXX17_EXTENSION_COMPILE_OPTION:             
            -std=gnu++17<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            CMAKE_EXE_LINKER_FLAGS:             
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            CMAKE_MODULE_LINKER_FLAGS:               -Wl,--no-undefined<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            CMAKE_SHARED_LINKER_FLAGS:               -Wl,--no-undefined<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">--  
            CMAKE_STATIC_LINKER_FLAGS:             
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">Any idea on
            how to fix the error?
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">Thanks!<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>