<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=us-ascii">
<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: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: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;}
@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="#467886" vlink="#96607D" style="word-wrap:break-word">
<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>
</body>
</html>