[gdal-dev] r41166 broke the android build by using std::to_string

Even Rouault even.rouault at spatialys.com
Wed Jan 3 01:38:40 PST 2018


On mercredi 3 janvier 2018 14:07:46 CET Alan Thomas wrote:
> Sorry about this! I knew it was only a matter of time before I would
> break the build.
> 
> In r41170 I have got rid of std::to_string for now. It's easy enough
> to replace it with CPLString().Printf(...).

I had already encountered this issue with the CAD driver. Switching to clang itself alone 
doesn't fix the issue, as libstdc++ was still used. It appears from https://
stackoverflow.com/questions/17950814/how-to-use-stdstoul-and-stdstoull-in-android/
18124627#18124627 that std::to_string() cannot be used with gnu libstdc++. I've thus 
changed the toolchain to use --stl=libc++, and that worked:
https://trac.osgeo.org/gdal/changeset/41173

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180103/f654b509/attachment.html>


More information about the gdal-dev mailing list