[geos-devel] C++ version, documentation and --std flags

Regina Obe lr at pcorp.us
Thu Oct 4 07:09:10 PDT 2018

> I'm seeing test failures in trunk, built with autotools in an objdir with gcc 4.8
> on NetBSD 7 amd64.  They are obviously C++ build issues, but only happen
> when building tests.  I am not trying to ask others to debug these in this mail.
> I looked in README.md to find out what version of C++ is needed, and don't
> see any --std= flags inserted in the build.  Various compiler versions seem to
> have varying default standards, and it seems best to declare the version being
> used so that builds will hard fail obviously if that isn't ok.
> In my case, I think gcc 4.8 almost entirely supports C++11, but defaults to
> C++03 without --std=c++11.
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geos-devel
[Regina Obe] 
What error are you getting?  When I try to build using autotools, it also fails too building the tests


I assume your issue is different as on mine looks like it's just looking for a non-existent file on my system
And also mixing C and C++ constructions (like namespace)

I haven't retested recently under autotools so the namespace issue might be fixed.

In file included from C:/ming64gcc48/mingw64/x86_64-w64-mingw32/include/unistd.h:10,
                 from threadtest.c:19:
../../include/geos/io.h:19:1: error: unknown type name 'namespace'
 namespace geos {
../../include/geos/io.h:19:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 namespace geos {
In file included from ../../include/geos/io.h:48,
                 from C:/ming64gcc48/mingw64/x86_64-w64-mingw32/include/unistd.h:10,
                 from threadtest.c:19:
../../include/geos/io/ByteOrderDataInStream.h:30:10: fatal error: iosfwd: No such file or directory
 #include <iosfwd> // ostream, istream (if we remove inlines)
compilation terminated.
Makefile:443: recipe for target 'threadtest.o' failed
make[4]: *** [threadtest.o] Error 1
make[4]: Leaving directory '/projects/geos/geos-3.7.0beta2/tests/thread'
Makefile:555: recipe for target 'check-am' failed
make[3]: *** [check-am] Error 2
make[3]: Leaving directory '/projects/geos/geos-3.7.0beta2/tests/thread'
Makefile:429: recipe for target 'check-recursive' failed
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory '/projects/geos/geos-3.7.0beta2/tests'
Makefile:480: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/projects/geos/geos-3.7.0beta2'
Makefile:776: recipe for target 'check' failed
make: *** [check] Error 2

More information about the geos-devel mailing list