Skip to content

gdal[core,libspatialite] build failure #17609

@spindensity

Description

@spindensity

Host Environment

  • OS: Windows 10 20H2;
  • Compiler: MSVC 2019 16.9.4;
  • gdal: 3.2.2.

To Reproduce

  1. vcpkg install abseil[cxx17]
  2. vcpkg install gdal[core,libspatialite]

Failure logs

D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts>cd flatgeobuf   && nmake /nologo /f makefile.vc   && cd ..   || exit 1
        cl  /Z7 /Fd..\..\..\gdal302_d.pdb /nologo /MP%NUMBER_OF_PROCESSORS% "/MDd" /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG /W3 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4351 /wd4611  /DHAVE_SSE_AT_COMPILE_TIME /DHAVE_SSSE3_AT_COMPILE_TIME -I..\..\..\port -I..\..\..\ogr -I..\..\..\gcore  -I..\..\..\alg -I..\..\..\ogr\ogrsf_frmts  -I..\..\..\gnm -I..\..\..\gnm\gnm_frmts -I..\..\..\apps /DHAVE_AVX_AT_COMPILE_TIME -I. -I.. -I..\.. -I..\generic  -DGNM_ENABLED  -DGDAL_COMPILATION -DNOMINMAX /c geometryreader.cpp geometrywriter.cpp ogrflatgeobufdataset.cpp ogrflatgeobuflayer.cpp ogrflatgeobufeditablelayer.cpp packedrtree.cpp
geometryreader.cpp
geometrywriter.cpp
ogrflatgeobufdataset.cpp
ogrflatgeobuflayer.cpp
ogrflatgeobufeditablelayer.cpp
packedrtree.cpp
The contents of <string_view> are available only with C++17 or later.
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2039: 'string_view': is not a member of 'std' (compiling source file packedrtree.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\functional(31): note: see declaration of 'std' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2061: syntax error: identifier 'string_view' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C7525: inline variables require at least '/std:c++17' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ';' before identifier 'ClippedSubstr' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ')' before identifier 's' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2825: 'absl::lts_20210324::string_view': must be a class or namespace when followed by '::' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2510: 'string_view': left of '::' must be a class/struct/union (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2143: syntax error: missing ';' before '{' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2447: '{': missing function header (old-style formal list?) (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2373: 'absl::lts_20210324::string_view': redefinition; different type modifiers (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2146: syntax error: missing ';' before identifier 'NullSafeStringView' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2370: 'absl::lts_20210324::string_view': redefinition; different storage class (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2888: 'int absl::lts_20210324::string_view': symbol cannot be defined within namespace 'flatbuffers' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2146: syntax error: missing ';' before identifier 'string_view' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C3646: 'string_view': unknown override specifier (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2059: syntax error: '(' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1487): error C2061: syntax error: identifier 'string_view' (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file packedrtree.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file packedrtree.cpp)
The contents of <string_view> are available only with C++17 or later.
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2039: 'string_view': is not a member of 'std' (compiling source file geometryreader.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\functional(31): note: see declaration of 'std' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2061: syntax error: identifier 'string_view' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C7525: inline variables require at least '/std:c++17' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ';' before identifier 'ClippedSubstr' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ')' before identifier 's' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2825: 'absl::lts_20210324::string_view': must be a class or namespace when followed by '::' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2510: 'string_view': left of '::' must be a class/struct/union (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2143: syntax error: missing ';' before '{' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2447: '{': missing function header (old-style formal list?) (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2373: 'absl::lts_20210324::string_view': redefinition; different type modifiers (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2146: syntax error: missing ';' before identifier 'NullSafeStringView' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2370: 'absl::lts_20210324::string_view': redefinition; different storage class (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2888: 'int absl::lts_20210324::string_view': symbol cannot be defined within namespace 'flatbuffers' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2146: syntax error: missing ';' before identifier 'string_view' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C3646: 'string_view': unknown override specifier (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2059: syntax error: '(' (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file geometryreader.cpp)
The contents of <string_view> are available only with C++17 or later.
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2039: 'string_view': is not a member of 'std' (compiling source file ogrflatgeobufdataset.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\functional(31): note: see declaration of 'std' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2061: syntax error: identifier 'string_view' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C7525: inline variables require at least '/std:c++17' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ';' before identifier 'ClippedSubstr' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ')' before identifier 's' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2825: 'absl::lts_20210324::string_view': must be a class or namespace when followed by '::' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2510: 'string_view': left of '::' must be a class/struct/union (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2143: syntax error: missing ';' before '{' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2447: '{': missing function header (old-style formal list?) (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2373: 'absl::lts_20210324::string_view': redefinition; different type modifiers (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2146: syntax error: missing ';' before identifier 'NullSafeStringView' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2370: 'absl::lts_20210324::string_view': redefinition; different storage class (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2888: 'int absl::lts_20210324::string_view': symbol cannot be defined within namespace 'flatbuffers' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2146: syntax error: missing ';' before identifier 'string_view' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1487): error C2061: syntax error: identifier 'string_view' (compiling source file geometryreader.cpp)
The contents of <string_view> are available only with C++17 or later.
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2039: 'string_view': is not a member of 'std' (compiling source file geometrywriter.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\functional(31): note: see declaration of 'std' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2061: syntax error: identifier 'string_view' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C7525: inline variables require at least '/std:c++17' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ';' before identifier 'ClippedSubstr' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ')' before identifier 's' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C3646: 'string_view': unknown override specifier (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2825: 'absl::lts_20210324::string_view': must be a class or namespace when followed by '::' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2059: syntax error: '(' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2510: 'string_view': left of '::' must be a class/struct/union (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2143: syntax error: missing ';' before '{' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2447: '{': missing function header (old-style formal list?) (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2373: 'absl::lts_20210324::string_view': redefinition; different type modifiers (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2146: syntax error: missing ';' before identifier 'NullSafeStringView' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2370: 'absl::lts_20210324::string_view': redefinition; different storage class (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2888: 'int absl::lts_20210324::string_view': symbol cannot be defined within namespace 'flatbuffers' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2146: syntax error: missing ';' before identifier 'string_view' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1487): error C2061: syntax error: identifier 'string_view' (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C3646: 'string_view': unknown override specifier (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2059: syntax error: '(' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file geometryreader.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1487): error C2061: syntax error: identifier 'string_view' (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file ogrflatgeobufdataset.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file geometrywriter.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file geometrywriter.cpp)
The contents of <string_view> are available only with C++17 or later.
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2039: 'string_view': is not a member of 'std' (compiling source file ogrflatgeobufeditablelayer.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\functional(31): note: see declaration of 'std' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2061: syntax error: identifier 'string_view' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C7525: inline variables require at least '/std:c++17' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ';' before identifier 'ClippedSubstr' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ')' before identifier 's' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2825: 'absl::lts_20210324::string_view': must be a class or namespace when followed by '::' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2510: 'string_view': left of '::' must be a class/struct/union (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2143: syntax error: missing ';' before '{' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2447: '{': missing function header (old-style formal list?) (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2373: 'absl::lts_20210324::string_view': redefinition; different type modifiers (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2146: syntax error: missing ';' before identifier 'NullSafeStringView' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2370: 'absl::lts_20210324::string_view': redefinition; different storage class (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2888: 'int absl::lts_20210324::string_view': symbol cannot be defined within namespace 'flatbuffers' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2146: syntax error: missing ';' before identifier 'string_view' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C3646: 'string_view': unknown override specifier (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2059: syntax error: '(' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file ogrflatgeobufeditablelayer.cpp)
The contents of <string_view> are available only with C++17 or later.
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2039: 'string_view': is not a member of 'std' (compiling source file ogrflatgeobuflayer.cpp)
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\functional(31): note: see declaration of 'std' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(51): error C2061: syntax error: identifier 'string_view' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C7525: inline variables require at least '/std:c++17' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ';' before identifier 'ClippedSubstr' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): error C2146: syntax error: missing ')' before identifier 's' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2825: 'absl::lts_20210324::string_view': must be a class or namespace when followed by '::' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2510: 'string_view': left of '::' must be a class/struct/union (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2143: syntax error: missing ';' before '{' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(612): error C2447: '{': missing function header (old-style formal list?) (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2373: 'absl::lts_20210324::string_view': redefinition; different type modifiers (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2737: 'absl::lts_20210324::string_view': 'constexpr' object must be initialized (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C2146: syntax error: missing ';' before identifier 'NullSafeStringView' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(622): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(623): error C2065: 'string_view': undeclared identifier (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1487): error C2061: syntax error: identifier 'string_view' (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2370: 'absl::lts_20210324::string_view': redefinition; different storage class (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\installed\x64-windows\include\absl/strings/string_view.h(611): note: see declaration of 'absl::lts_20210324::string_view' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2888: 'int absl::lts_20210324::string_view': symbol cannot be defined within namespace 'flatbuffers' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/base.h(219): error C2146: syntax error: missing ';' before identifier 'string_view' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C3646: 'string_view': unknown override specifier (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2059: syntax error: '(' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(561): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1487): error C2061: syntax error: identifier 'string_view' (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file ogrflatgeobufeditablelayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file ogrflatgeobuflayer.cpp)
D:\Repository\vcpkg\buildtrees\gdal\x64-windows-dbg\ogr\ogrsf_frmts\flatgeobuf\flatbuffers/flatbuffers.h(1488): error C2065: 'str': undeclared identifier (compiling source file ogrflatgeobuflayer.cpp)

Additional context

The logic of detecting string_view feature is in the source file ogr\ogrsf_frmts\flatgeobuf\flatbuffers\base.h(L197-L224):

#ifndef FLATBUFFERS_HAS_STRING_VIEW
  // Only provide flatbuffers::string_view if __has_include can be used
  // to detect a header that provides an implementation
  #if defined(__has_include)
    // Check for std::string_view (in c++17)
    #if __has_include(<string_view>) && (__cplusplus >= 201606 || (defined(_HAS_CXX17) && _HAS_CXX17))
      #include <string_view>
      namespace flatbuffers {
        typedef std::string_view string_view;
      }
      #define FLATBUFFERS_HAS_STRING_VIEW 1
    // Check for std::experimental::string_view (in c++14, compiler-dependent)
    #elif __has_include(<experimental/string_view>) && (__cplusplus >= 201411)
      #include <experimental/string_view>
      namespace flatbuffers {
        typedef std::experimental::string_view string_view;
      }
      #define FLATBUFFERS_HAS_STRING_VIEW 1
    // Check for absl::string_view
    #elif __has_include("absl/strings/string_view.h")
      #include "absl/strings/string_view.h"
      namespace flatbuffers {
        typedef absl::string_view string_view;
      }
      #define FLATBUFFERS_HAS_STRING_VIEW 1
    #endif
  #endif // __has_include
#endif // !FLATBUFFERS_HAS_STRING_VIEW

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions