[gdal-dev] GDAL 2.2.0 beta 2 available
Sean Gillies
sean at mapbox.com
Wed Apr 26 02:55:35 PDT 2017
On Tue, Apr 25, 2017 at 4:21 PM, Even Rouault <even.rouault at spatialys.com>
wrote:
>
>
> >
>
> > This seems to be related to: https://github.com/OSGeo/gdal/commit/
>
> > 3ed7812f95de1b2d9a6e6bc93717a522df765377. Maybe HAVE_CXX11 isn't
>
> > guaranteeing all the expected C++11 features?
>
>
>
> Hum it looks like this compiler is indeed not fully C++11 compliant.
>
>
>
> Do the compilation lines include -std=c++11 or something else like
> -std=c++0x ?
>
> 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
>
>
>
> In any case, you should likely
>
>
>
> ./configure --without-cpp11
>
>
>
> (I'm not going to apply the above patch regarding CPLIsNan() then)
>
>
>
> Or better update your compiler since GDAL 2.3 will probably require C++11.
>
>
>
>
>
> Even
>
--without-cpp11 doesn't help me. I still have the following error
cpl_conv.cpp:2060:9: error: use of undeclared identifier 'isnan'; did you
mean 'std::isnan'?
if( CPLIsNan(dfAngle) )
^
/Users/sean/code/frs-wheel-builds/parts/gdal__compile__/gdal-2.2.0/port/cpl_port.h:687:23:
note: expanded from macro 'CPLIsNan'
# define CPLIsNan(x) isnan(x)
^
/usr/include/c++/4.2.1/cmath:551:5: note: 'std::isnan' declared here
isnan(_Tp __f) { return ::__gnu_cxx::__capture_isnan(__f); }
^
1 error generated.
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.
--
Sean Gillies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170426/008b8653/attachment.html>
More information about the gdal-dev
mailing list