<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 25, 2017 at 4:21 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:monospace;font-size:9pt;font-weight:400;font-style:normal"><span class="gmail-">
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> This seems to be related to: <a href="https://github.com/OSGeo/gdal/commit/" target="_blank">https://github.com/OSGeo/gdal/<wbr>commit/</a></p>
<p style="margin:0px;text-indent:0px">> 3ed7812f95de1b2d9a6e6bc93717a5<wbr>22df765377. Maybe HAVE_CXX11 isn't</p>
<p style="margin:0px;text-indent:0px">> guaranteeing all the expected C++11 features?</p>
<p style="margin:0px;text-indent:0px"> </p>
</span><p style="margin:0px;text-indent:0px">Hum it looks like this compiler is indeed not fully C++11 compliant. </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Do the compilation lines include -std=c++11 or something else like -std=c++0x ?</p>
<p style="margin:0px;text-indent:0px">If it is the later, then this might explain the failure if it is an old compiler that was in the middle of implementing C++11</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">In any case, you should likely</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">./configure --without-cpp11</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">(I'm not going to apply the above patch regarding CPLIsNan() then)</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Or better update your compiler since GDAL 2.3 will probably require C++11.</p><span class="gmail-">
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Even</p></span></div></blockquote><div><br></div><div>--without-cpp11 doesn't help me. I still have the following error</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div><div>cpl_conv.cpp:2060:9: error: use of undeclared identifier 'isnan'; did you mean 'std::isnan'?</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>    if( CPLIsNan(dfAngle) )</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>        ^</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>/Users/sean/code/frs-wheel-builds/parts/gdal__compile__/gdal-2.2.0/port/cpl_port.h:687:23: note: expanded from macro 'CPLIsNan'</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>#  define CPLIsNan(x) isnan(x)</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>                      ^</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>/usr/include/c++/4.2.1/cmath:551:5: note: 'std::isnan' declared here</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>    isnan(_Tp __f) { return ::__gnu_cxx::__capture_isnan(__f); }</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>    ^</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>1 error generated.</div></div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>I'd love to be able to build 2.2.0 on this slightly out of date compiler, but if 2.2.0 will require C++11, I'll get with the program.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Sean Gillies</div></div>
</div></div>