Skip to content

PR978 breaks compilation (atleast) with cmake/gcc-8.3 #990

Closed
@asavah

Description

@asavah

Describe the bug
Build fails.

To Reproduce
Steps to reproduce the behavior:

  1. Try building jsonccp with cmake and gcc 8.3

Expected behavior
The build should succeed.

Desktop (please complete the following information):

  • OS: ubuntu 19.04
  • Cmake: 3.15.0

Additional context
Reverting #978 allows cmake build to succeed.
Meson build succeeds anyway.

Error dump

-- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- JsonCpp Version: 1.9.0
-- Looking for C++ include clocale
-- Looking for C++ include clocale - found
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of lconv
-- Check size of lconv - done
-- Performing Test HAVE_DECIMAL_POINT
-- Performing Test HAVE_DECIMAL_POINT - Success
-- Configuring done
-- Generating done

-- Build files have been written to: /home/asavah/kross/tmp/host/jsoncpp
jsoncpp: configure DONE.
jsoncpp: building ...
make[2]: Entering directory '/home/asavah/kross/tmp/host/jsoncpp'
make[3]: Entering directory '/home/asavah/kross/tmp/host/jsoncpp'
make[4]: Entering directory '/home/asavah/kross/tmp/host/jsoncpp'
Scanning dependencies of target jsoncpp_lib
make[4]: Leaving directory '/home/asavah/kross/tmp/host/jsoncpp'
make[4]: Entering directory '/home/asavah/kross/tmp/host/jsoncpp'
[ 25%] Building CXX object src/lib_json/CMakeFiles/jsoncpp_lib.dir/json_writer.cpp.o
[ 50%] Building CXX object src/lib_json/CMakeFiles/jsoncpp_lib.dir/json_reader.cpp.o
[ 75%] Building CXX object src/lib_json/CMakeFiles/jsoncpp_lib.dir/json_value.cpp.o
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/assertions.h:13,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:148:50: note: in expansion of macro ‘JSON_API’
 class [[deprecated("Use StreamWriter instead")]] JSON_API Writer {
                                                  ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:9:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:149:1: error: expected primary-expression before ‘public’
 public:
 ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:149:1: error: expected ‘}’ before ‘public’
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:148:66: note: to match this ‘{’
 class [[deprecated("Use StreamWriter instead")]] JSON_API Writer {
                                                                  ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:152:3: error: ‘virtual’ outside class declaration
   virtual String write(const Value& root) = 0;
   ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:152:45: error: function ‘Json::String Json::write(const Json::Value&)’ is initialized like a variable
   virtual String write(const Value& root) = 0;
                                             ^
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/assertions.h:13,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:168:57: note: in expansion of macro ‘JSON_API’
 class [[deprecated("Use StreamWriterBuilder instead")]] JSON_API FastWriter
                                                         ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:9:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:169:5: error: expected initializer before ‘:’ token
     : public Writer {
     ^
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/assertions.h:13,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:228:57: note: in expansion of macro ‘JSON_API’
 class [[deprecated("Use StreamWriterBuilder instead")]] JSON_API
                                                         ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:9:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:229:18: error: expected initializer before ‘:’ token
     StyledWriter : public Writer {
                  ^
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/assertions.h:13,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:297:57: note: in expansion of macro ‘JSON_API’
 class [[deprecated("Use StreamWriterBuilder instead")]] JSON_API
                                                         ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:9:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:299:1: error: expected primary-expression before ‘public’
 public:
 ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:299:1: error: expected ‘}’ before ‘public’
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:298:24: note: to match this ‘{’
     StyledStreamWriter {
                        ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:304:22: error: expected class-name before ‘(’ token
   ~StyledStreamWriter() = default;
                      ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:306:1: error: expected unqualified-id before ‘public’
 public:
 ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:315:1: error: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:317:30: error: ‘Value’ does not name a type
   void writeArrayValue(const Value& value);
                              ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:318:31: error: ‘Value’ does not name a type
   bool isMultilineArray(const Value& value);
                               ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:319:24: error: ‘String’ does not name a type; did you mean ‘stdin’?
   void pushValue(const String& value);
                        ^~~~~~
                        stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:321:30: error: ‘String’ does not name a type; did you mean ‘stdin’?
   void writeWithIndent(const String& value);
                              ^~~~~~
                              stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:324:38: error: ‘Value’ does not name a type; did you mean ‘pushValue’?
   void writeCommentBeforeValue(const Value& root);
                                      ^~~~~
                                      pushValue
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:325:47: error: ‘Value’ does not name a type; did you mean ‘pushValue’?
   void writeCommentAfterValueOnSameLine(const Value& root);
                                               ^~~~~
                                               pushValue
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:326:40: error: ‘Value’ does not name a type; did you mean ‘pushValue’?
   static bool hasCommentForValue(const Value& value);
                                        ^~~~~
                                        pushValue
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:327:10: error: ‘String’ does not name a type; did you mean ‘stdin’?
   static String normalizeEOL(const String& text);
          ^~~~~~
          stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:329:23: error: ‘String’ was not declared in this scope
   typedef std::vector<String> ChildValues;
                       ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:329:23: note: suggested alternative:
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/assertions.h:13,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:143:80: note:   ‘Json::String’
 using String = std::basic_string<char, std::char_traits<char>, Allocator<char>>;
                                                                                ^
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_value.cpp:9:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:329:29: error: template argument 1 is invalid
   typedef std::vector<String> ChildValues;
                             ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:329:29: error: template argument 2 is invalid
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:332:3: error: ‘OStream’ does not name a type
   OStream* document_;
   ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:333:3: error: ‘String’ does not name a type; did you mean ‘stdin’?
   String indentString_;
   ^~~~~~
   stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:335:3: error: ‘String’ does not name a type; did you mean ‘stdin’?
   String indentation_;
   ^~~~~~
   stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:336:24: error: expected initializer before ‘:’ token
   bool addChildValues_ : 1;
                        ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:337:18: error: expected initializer before ‘:’ token
   bool indented_ : 1;
                  ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:338:1: error: expected declaration before ‘}’ token
 };
 ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:326:15: warning: ‘bool hasCommentForValue(const int&)’ declared ‘static’ but never defined [-Wunused-function]
   static bool hasCommentForValue(const Value& value);
               ^~~~~~~~~~~~~~~~~~
make[4]: *** [src/lib_json/CMakeFiles/jsoncpp_lib.dir/build.make:76: src/lib_json/CMakeFiles/jsoncpp_lib.dir/json_value.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_tool.h:10,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:148:50: note: in expansion of macro ‘JSON_API’
 class [[deprecated("Use StreamWriter instead")]] JSON_API Writer {
                                                  ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:8:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:149:1: error: expected primary-expression before ‘public’
 public:
 ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:149:1: error: expected ‘}’ before ‘public’
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:148:66: note: to match this ‘{’
 class [[deprecated("Use StreamWriter instead")]] JSON_API Writer {
                                                                  ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:152:3: error: ‘virtual’ outside class declaration
   virtual String write(const Value& root) = 0;
   ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:152:45: error: function ‘Json::String Json::write(const Json::Value&)’ is initialized like a variable
   virtual String write(const Value& root) = 0;
                                             ^
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_tool.h:10,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:168:57: note: in expansion of macro ‘JSON_API’
 class [[deprecated("Use StreamWriterBuilder instead")]] JSON_API FastWriter
                                                         ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:8:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:169:5: error: expected initializer before ‘:’ token
     : public Writer {
     ^
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_tool.h:10,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:228:57: note: in expansion of macro ‘JSON_API’
 class [[deprecated("Use StreamWriterBuilder instead")]] JSON_API
                                                         ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:8:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:229:18: error: expected initializer before ‘:’ token
     StyledWriter : public Writer {
                  ^
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_tool.h:10,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:297:57: note: in expansion of macro ‘JSON_API’
 class [[deprecated("Use StreamWriterBuilder instead")]] JSON_API
                                                         ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:8:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:299:1: error: expected primary-expression before ‘public’
 public:
 ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:299:1: error: expected ‘}’ before ‘public’
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:298:24: note: to match this ‘{’
     StyledStreamWriter {
                        ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:304:22: error: expected class-name before ‘(’ token
   ~StyledStreamWriter() = default;
                      ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:306:1: error: expected unqualified-id before ‘public’
 public:
 ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:315:1: error: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:317:30: error: ‘Value’ does not name a type
   void writeArrayValue(const Value& value);
                              ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:318:31: error: ‘Value’ does not name a type
   bool isMultilineArray(const Value& value);
                               ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:319:24: error: ‘String’ does not name a type; did you mean ‘stdin’?
   void pushValue(const String& value);
                        ^~~~~~
                        stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:321:30: error: ‘String’ does not name a type; did you mean ‘stdin’?
   void writeWithIndent(const String& value);
                              ^~~~~~
                              stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:324:38: error: ‘Value’ does not name a type; did you mean ‘pushValue’?
   void writeCommentBeforeValue(const Value& root);
                                      ^~~~~
                                      pushValue
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:325:47: error: ‘Value’ does not name a type; did you mean ‘pushValue’?
   void writeCommentAfterValueOnSameLine(const Value& root);
                                               ^~~~~
                                               pushValue
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:326:40: error: ‘Value’ does not name a type; did you mean ‘pushValue’?
   static bool hasCommentForValue(const Value& value);
                                        ^~~~~
                                        pushValue
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:327:10: error: ‘String’ does not name a type; did you mean ‘stdin’?
   static String normalizeEOL(const String& text);
          ^~~~~~
          stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:329:23: error: ‘String’ was not declared in this scope
   typedef std::vector<String> ChildValues;
                       ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:329:23: note: suggested alternative:
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_tool.h:10,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:7:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:143:80: note:   ‘Json::String’
 using String = std::basic_string<char, std::char_traits<char>, Allocator<char>>;
                                                                                ^
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_writer.cpp:8:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:329:29: error: template argument 1 is invalid
   typedef std::vector<String> ChildValues;
                             ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:329:29: error: template argument 2 is invalid
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:332:3: error: ‘OStream’ does not name a type
   OStream* document_;
   ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:333:3: error: ‘String’ does not name a type; did you mean ‘stdin’?
   String indentString_;
   ^~~~~~
   stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:335:3: error: ‘String’ does not name a type; did you mean ‘stdin’?
   String indentation_;
   ^~~~~~
   stdin
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:336:24: error: expected initializer before ‘:’ token
   bool addChildValues_ : 1;
                        ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:337:18: error: expected initializer before ‘:’ token
   bool indented_ : 1;
                  ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:338:1: error: expected declaration before ‘}’ token
 };
 ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/writer.h:326:15: warning: ‘bool hasCommentForValue(const int&)’ declared ‘static’ but never defined [-Wunused-function]
   static bool hasCommentForValue(const Value& value);
               ^~~~~~~~~~~~~~~~~~
make[4]: *** [src/lib_json/CMakeFiles/jsoncpp_lib.dir/build.make:89: src/lib_json/CMakeFiles/jsoncpp_lib.dir/json_writer.cpp.o] Error 1
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_tool.h:10,
                 from /home/asavah/kross/src/jsoncpp/src/lib_json/json_reader.cpp:8:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/config.h:57:18: error: expected identifier before ‘__attribute__’
 #define JSON_API __attribute__((visibility("default")))
                  ^~~~~~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:39:74: note: in expansion of macro ‘JSON_API’
 class [[deprecated("deprecated Use CharReader and CharReaderBuilder.")]] JSON_API Reader {
                                                                          ^~~~~~~~
In file included from /home/asavah/kross/src/jsoncpp/src/lib_json/json_reader.cpp:10:
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:40:1: error: expected primary-expression before ‘public’
 public:
 ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:40:1: error: expected ‘}’ before ‘public’
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:39:90: note: to match this ‘{’
 class [[deprecated("deprecated Use CharReader and CharReaderBuilder.")]] JSON_API Reader {
                                                                                          ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:42:17: error: ‘Char’ does not name a type; did you mean ‘char’?
   typedef const Char* Location;
                 ^~~~
                 char
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:57:11: error: expected constructor, destructor, or type conversion before ‘;’ token
   Reader();
           ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:61:35: error: expected constructor, destructor, or type conversion before ‘;’ token
   Reader(const Features& features);
                                   ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:114:37: error: non-member function ‘Json::String Json::getFormatedErrorMessages()’ cannot have cv-qualifier
   String getFormatedErrorMessages() const;
                                     ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:123:38: error: non-member function ‘Json::String Json::getFormattedErrorMessages()’ cannot have cv-qualifier
   String getFormattedErrorMessages() const;
                                      ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:132:54: error: non-member function ‘std::vector<Json::StructuredError> Json::getStructuredErrors()’ cannot have cv-qualifier
   std::vector<StructuredError> getStructuredErrors() const;
                                                      ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:158:15: error: non-member function ‘bool Json::good()’ cannot have cv-qualifier
   bool good() const;
               ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:160:1: error: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:180:5: error: ‘TokenType’ does not name a type; did you mean ‘Token’?
     TokenType type_;
     ^~~~~~~~~
     Token
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:181:5: error: ‘Location’ does not name a type; did you mean ‘Exception’?
     Location start_;
     ^~~~~~~~
     Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:182:5: error: ‘Location’ does not name a type; did you mean ‘Exception’?
     Location end_;
     ^~~~~~~~
     Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:189:5: error: ‘Location’ does not name a type; did you mean ‘Exception’?
     Location extra_;
     ^~~~~~~~
     Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:196:14: error: ‘Location’ was not declared in this scope
   bool match(Location pattern, int patternLength);
              ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:196:14: note: suggested alternative: ‘Exception’
   bool match(Location pattern, int patternLength);
              ^~~~~~~~
              Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:196:32: error: expected primary-expression before ‘int’
   bool match(Location pattern, int patternLength);
                                ^~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:196:49: error: expression list treated as compound expression in initializer [-fpermissive]
   bool match(Location pattern, int patternLength);
                                                 ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:212:31: error: ‘Location’ has not been declared
                               Location& current,
                               ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:213:31: error: ‘Location’ has not been declared
                               Location end,
                               ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:216:36: error: ‘Location’ has not been declared
                                    Location& current,
                                    ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:217:36: error: ‘Location’ has not been declared
                                    Location end,
                                    ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:219:54: error: ‘Location’ has not been declared
   bool addError(const String& message, Token& token, Location extra = nullptr);
                                                      ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:219:78: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘int’
   bool addError(const String& message, Token& token, Location extra = nullptr);
                                                                              ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:220:25: error: ‘TokenType’ was not declared in this scope
   bool recoverFromError(TokenType skipUntilToken);
                         ^~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:220:25: note: suggested alternative: ‘Token’
   bool recoverFromError(TokenType skipUntilToken);
                         ^~~~~~~~~
                         Token
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:223:27: error: ‘TokenType’ has not been declared
                           TokenType skipUntilToken);
                           ^~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:226:3: error: ‘Char’ does not name a type; did you mean ‘char’?
   Char getNextChar();
   ^~~~
   char
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:228:28: error: variable or field ‘getLocationLineAndColumn’ declared void
   getLocationLineAndColumn(Location location, int& line, int& column) const;
                            ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:228:28: error: ‘Location’ was not declared in this scope
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:228:28: note: suggested alternative: ‘Exception’
   getLocationLineAndColumn(Location location, int& line, int& column) const;
                            ^~~~~~~~
                            Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:228:47: error: expected primary-expression before ‘int’
   getLocationLineAndColumn(Location location, int& line, int& column) const;
                                               ^~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:228:58: error: expected primary-expression before ‘int’
   getLocationLineAndColumn(Location location, int& line, int& column) const;
                                                          ^~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:229:35: error: ‘Location’ was not declared in this scope
   String getLocationLineAndColumn(Location location) const;
                                   ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:229:35: note: suggested alternative: ‘Exception’
   String getLocationLineAndColumn(Location location) const;
                                   ^~~~~~~~
                                   Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:229:54: error: expected ‘,’ or ‘;’ before ‘const’
   String getLocationLineAndColumn(Location location) const;
                                                      ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:230:19: error: variable or field ‘addComment’ declared void
   void addComment(Location begin, Location end, CommentPlacement placement);
                   ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:230:19: error: ‘Location’ was not declared in this scope
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:230:19: note: suggested alternative: ‘Exception’
   void addComment(Location begin, Location end, CommentPlacement placement);
                   ^~~~~~~~
                   Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:230:35: error: ‘Location’ was not declared in this scope
   void addComment(Location begin, Location end, CommentPlacement placement);
                                   ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:230:35: note: suggested alternative: ‘Exception’
   void addComment(Location begin, Location end, CommentPlacement placement);
                                   ^~~~~~~~
                                   Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:230:66: error: expected primary-expression before ‘placement’
   void addComment(Location begin, Location end, CommentPlacement placement);
                                                                  ^~~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:233:31: error: ‘Location’ was not declared in this scope
   static bool containsNewLine(Location begin, Location end);
                               ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:233:31: note: suggested alternative: ‘Exception’
   static bool containsNewLine(Location begin, Location end);
                               ^~~~~~~~
                               Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:233:47: error: ‘Location’ was not declared in this scope
   static bool containsNewLine(Location begin, Location end);
                                               ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:233:47: note: suggested alternative: ‘Exception’
   static bool containsNewLine(Location begin, Location end);
                                               ^~~~~~~~
                                               Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:233:59: error: expression list treated as compound expression in initializer [-fpermissive]
   static bool containsNewLine(Location begin, Location end);
                                                           ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:234:30: error: ‘Location’ was not declared in this scope
   static String normalizeEOL(Location begin, Location end);
                              ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:234:30: note: suggested alternative: ‘Exception’
   static String normalizeEOL(Location begin, Location end);
                              ^~~~~~~~
                              Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:234:46: error: ‘Location’ was not declared in this scope
   static String normalizeEOL(Location begin, Location end);
                                              ^~~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:234:46: note: suggested alternative: ‘Exception’
   static String normalizeEOL(Location begin, Location end);
                                              ^~~~~~~~
                                              Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:240:3: error: ‘Location’ does not name a type; did you mean ‘Exception’?
   Location begin_{};
   ^~~~~~~~
   Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:241:3: error: ‘Location’ does not name a type; did you mean ‘Exception’?
   Location end_{};
   ^~~~~~~~
   Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:242:3: error: ‘Location’ does not name a type; did you mean ‘Exception’?
   Location current_{};
   ^~~~~~~~
   Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:243:3: error: ‘Location’ does not name a type; did you mean ‘Exception’?
   Location lastValueEnd_{};
   ^~~~~~~~
   Exception
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:273:22: error: ‘Value’ has not been declared
                      Value* root,
                      ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:274:22: error: ‘String’ has not been declared
                      String* errs) = 0;
                      ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:353:3: error: ‘Value’ does not name a type
   Value& operator[](const String& key);
   ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:374:31: error: ‘IStream’ has not been declared
                               IStream&,
                               ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:375:31: error: ‘Value’ has not been declared
                               Value* root,
                               ^~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:376:31: error: ‘String’ has not been declared
                               String* errs);
                               ^~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:402:10: error: ‘IStream’ does not name a type
 JSON_API IStream& operator>>(IStream&, Value&);
          ^~~~~~~
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:404:1: error: expected declaration before ‘}’ token
 } // namespace Json
 ^
/home/asavah/kross/src/jsoncpp/src/lib_json/../../include/json/reader.h:233:15: warning: ‘Json::containsNewLine’ defined but not used [-Wunused-variable]
   static bool containsNewLine(Location begin, Location end);
               ^~~~~~~~~~~~~~~
make[4]: *** [src/lib_json/CMakeFiles/jsoncpp_lib.dir/build.make:63: src/lib_json/CMakeFiles/jsoncpp_lib.dir/json_reader.cpp.o] Error 1
make[3]: *** [CMakeFiles/Makefile2:115: src/lib_json/CMakeFiles/jsoncpp_lib.dir/all] Error 2
make[2]: *** [Makefile:130: all] Error 2
make[1]: *** [Makefile:79: build] Error 1
make[4]: Leaving directory '/home/asavah/kross/tmp/host/jsoncpp'
make[3]: Leaving directory '/home/asavah/kross/tmp/host/jsoncpp'
make[2]: Leaving directory '/home/asavah/kross/tmp/host/jsoncpp'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions