> On Nov 30, 2020, at 7:15 PM, Andrew Hershberger
> <andrew.d.hershber...@gmail.com> wrote:
>
> Found another issue with the beta when testing GEOSwift on Linux
> (specifically, compiling in a Docker container using the Swift Docker image).
> Here's what I'm doing:
>
> $ sudo docker run -it --rm swift /bin/bash
> # cd home
> # git clone https://github.com/GEOSwift/GEOSwift.git
> # cd GEOSwift
> # git checkout geos-3.9.0-testing
> # swift test --enable-test-discovery -v
>
> Among other things, this yields the following line for LineLimiter.cpp:
>
> /usr/bin/clang -target x86_64-unknown-linux-gnu -fPIC -g -O0
> -DSWIFT_PACKAGE=1 -DDEBUG=1 -fblocks -fmodules -fmodule-name=geos -I
> /home/GEOSwift/.build/checkouts/geos/Sources/geos/public
> -fmodules-cache-path=/home/GEOSwift/.build/x86_64-unknown-linux-gnu/debug/ModuleCache
> -DUSE_UNSTABLE_GEOS_CPP_API
> -I/home/GEOSwift/.build/checkouts/geos/Sources/geos/include -MD -MT
> dependencies -MF
> /home/GEOSwift/.build/x86_64-unknown-linux-gnu/debug/geos.build/src/operation/overlayng/LineLimiter.cpp.d
> -std=c++11 -c
> /home/GEOSwift/.build/checkouts/geos/Sources/geos/src/operation/overlayng/LineLimiter.cpp
> -o
> /home/GEOSwift/.build/x86_64-unknown-linux-gnu/debug/geos.build/src/operation/overlayng/LineLimiter.cpp.o
>
> And this corresponding error:
>
> /home/GEOSwift/.build/checkouts/geos/Sources/geos/src/operation/overlayng/LineLimiter.cpp:121:24:
> error: no member named 'unique' in namespace 'std'
> ptList->erase(std::unique(ptList->begin(), ptList->end()), ptList->end());
Add #include <algorithm>
to LineLimiter.cpp see if that helps?
Not sure why only your version would have this problem. Maybe it's in different
headers sometimes?
> ~~~~~^
>
> Here's some clang version info:
>
> clang version 10.0.0 (g...@github.com:apple/llvm-project.git
> 3093af41dd65ad466dcd5603e9289244edfee4f5)
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
>
> Any idea what might be going on here?
>
> _______________________________________________
> geos-devel mailing list
> geos-devel@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geos-devel
_______________________________________________
geos-devel mailing list
geos-devel@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geos-devel