Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- make -C Json install PREFIX=/build CXXSTDVER=
- make[1]: Entering directory `/home/adminuser/Downloads/new/ThorsSerializer/Json'
- [0;34mBuilding Objects for Testing and Coverage[0m
- make[2]: Entering directory `/home/adminuser/Downloads/new/ThorsSerializer/Json'
- [0;31mERROR[0m
- g++ -c ParserShiftReduce.tab.cpp -o coverage/ParserShiftReduce.tab.o -fPIC -Wall -Wextra -Wstrict-aliasing -pedantic -Werror -Wunreachable-code -Wno-long-long -Wno-overloaded-virtual -Wno-parentheses -Wno-unreachable-code -I/build/include -isystem /build/include3rd -DBOOST_FILESYSTEM_VERSION=3 -DCOVERAGE_Json -g -fprofile-arcs -ftest-coverage -DCOVERAGE_TEST -Wno-deprecated-register
- ========================================
- In file included from ParserInterface.h:5:0,
- from ParserShiftReduce.y:9:
- JsonDom.h:51:19: error: ‘unique_ptr’ is not a member of ‘std’
- typedef std::pair<std::unique_ptr<std::string>,std::unique_ptr<JsonValue> > JsonMapValue;
- ^
- JsonDom.h:51:19: error: ‘unique_ptr’ is not a member of ‘std’
- JsonDom.h:51:46: error: wrong number of template arguments (1, should be 2)
- typedef std::pair<std::unique_ptr<std::string>,std::unique_ptr<JsonValue> > JsonMapValue;
- ^
- In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
- from /usr/include/c++/4.8/bits/char_traits.h:39,
- from /usr/include/c++/4.8/string:40,
- from /usr/include/c++/4.8/stdexcept:39,
- from JsonException.h:5,
- from JsonDom.h:5,
- from ParserInterface.h:5,
- from ParserShiftReduce.y:9:
- /usr/include/c++/4.8/bits/stl_pair.h:96:12: error: provided for ‘template<class _T1, class _T2> struct std::pair’
- struct pair
- ^
- In file included from ParserInterface.h:5:0,
- from ParserShiftReduce.y:9:
- JsonDom.h:51:47: error: expected unqualified-id before ‘,’ token
- typedef std::pair<std::unique_ptr<std::string>,std::unique_ptr<JsonValue> > JsonMapValue;
- ^
- JsonDom.h:51:63: error: expected initializer before ‘<’ token
- typedef std::pair<std::unique_ptr<std::string>,std::unique_ptr<JsonValue> > JsonMapValue;
- ^
- JsonDom.h:120:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
- std::unique_ptr<std::string> value;
- ^
- JsonDom.h:121:35: error: expected ‘)’ before ‘<’ token
- JsonStringItem(std::unique_ptr<std::string>& data): value(std::move(data)) {}
- ^
- JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonStringItem::print(std::ostream&) const’:
- JsonDom.h:123:75: error: ‘value’ was not declared in this scope
- virtual void print(std::ostream& stream) const { stream << '"' << *value << '"'; }
- ^
- JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonStringItem::setValue(std::string&) const’:
- JsonDom.h:125:70: error: ‘value’ was not declared in this scope
- virtual void setValue(std::string& dst) const {dst = *value;}
- ^
- JsonDom.h: At global scope:
- JsonDom.h:129:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
- std::unique_ptr<std::string> value;
- ^
- JsonDom.h:130:35: error: expected ‘)’ before ‘<’ token
- JsonNumberItem(std::unique_ptr<std::string>& data): value(std::move(data)) {}
- ^
- JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::print(std::ostream&) const’:
- JsonDom.h:132:68: error: ‘value’ was not declared in this scope
- virtual void print(std::ostream& stream) const { stream << *value; }
- ^
- JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::setValue(long int&) const’:
- JsonDom.h:134:74: error: ‘value’ was not declared in this scope
- virtual void setValue(long& dst) const {dst = std::atol(value->c_str());}
- ^
- JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::setValue(double&) const’:
- JsonDom.h:135:74: error: ‘value’ was not declared in this scope
- virtual void setValue(double& dst) const {dst = std::atof(value->c_str());}
- ^
- JsonDom.h: At global scope:
- JsonDom.h:157:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
- std::unique_ptr<JsonMap> value;
- ^
- JsonDom.h:158:32: error: expected ‘)’ before ‘<’ token
- JsonMapItem(std::unique_ptr<JsonMap>& data): value(std::move(data)) {}
- ^
- JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonMapItem::print(std::ostream&) const’:
- JsonDom.h:160:68: error: ‘value’ was not declared in this scope
- virtual void print(std::ostream& stream) const { stream << *value; }
- ^
- JsonDom.h: At global scope:
- JsonDom.h:165:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
- std::unique_ptr<JsonArray> value;
- ^
- JsonDom.h:166:34: error: expected ‘)’ before ‘<’ token
- JsonArrayItem(std::unique_ptr<JsonArray>& data): value(std::move(data)) {}
- ^
- JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonArrayItem::print(std::ostream&) const’:
- JsonDom.h:168:68: error: ‘value’ was not declared in this scope
- virtual void print(std::ostream& stream) const { stream << *value; }
- ^
- In file included from ParserShiftReduce.y:9:0:
- ParserInterface.h: At global scope:
- ParserInterface.h:55:39: error: ‘mapCreate’ declared as a ‘virtual’ field
- virtual JsonMap* mapCreate(JsonMapValue* val) = 0;
- ^
- ParserInterface.h:55:29: error: expected ‘;’ at end of member declaration
- virtual JsonMap* mapCreate(JsonMapValue* val) = 0;
- ^
- ParserInterface.h:55:39: error: ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserInterface::mapCreate’ conflicts with a previous declaration
- virtual JsonMap* mapCreate(JsonMapValue* val) = 0;
- ^
- ParserInterface.h:54:29: note: previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserInterface::mapCreate()’
- virtual JsonMap* mapCreate() = 0;
- ^
- ParserInterface.h:55:51: error: expected ‘)’ before ‘*’ token
- virtual JsonMap* mapCreate(JsonMapValue* val) = 0;
- ^
- ParserInterface.h:56:53: error: ‘JsonMapValue’ has not been declared
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) = 0;
- ^
- ParserInterface.h:57:13: error: ‘JsonMapValue’ does not name a type
- virtual JsonMapValue* mapCreateElement(std::string* k,JsonValue* val) = 0;
- ^
- In file included from ParserShiftReduce.y:9:0:
- ParserInterface.h:84:39: error: ‘mapCreate’ declared as a ‘virtual’ field
- virtual JsonMap* mapCreate(JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValue\n"; return NULL;}
- ^
- ParserInterface.h:84:29: error: expected ‘;’ at end of member declaration
- virtual JsonMap* mapCreate(JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValue\n"; return NULL;}
- ^
- ParserInterface.h:84:39: error: ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParseLogInterface::mapCreate’ conflicts with a previous declaration
- virtual JsonMap* mapCreate(JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValue\n"; return NULL;}
- ^
- ParserInterface.h:83:29: note: previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParseLogInterface::mapCreate()’
- virtual JsonMap* mapCreate() {std::cout << "JsonMapValueListOpt: EMPTY\n"; return NULL;}
- ^
- ParserInterface.h:84:51: error: expected ‘)’ before ‘*’ token
- virtual JsonMap* mapCreate(JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValue\n"; return NULL;}
- ^
- ParserInterface.h:85:49: error: ‘JsonMapValue’ has not been declared
- virtual JsonMap* mapAppend(JsonMap*, JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValueList , JsonMapValue\n"; return NULL;}
- ^
- ParserInterface.h:86:13: error: ‘JsonMapValue’ does not name a type
- virtual JsonMapValue* mapCreateElement(std::string*,JsonValue*) {std::cout << "JsonMapValue: JSON_STRING : JsonValue\n"; return NULL;}
- ^
- ParserInterface.h:113:39: error: ‘mapCreate’ declared as a ‘virtual’ field
- virtual JsonMap* mapCreate(JsonMapValue* val) { delete val; return NULL;}
- ^
- ParserInterface.h:113:29: error: expected ‘;’ at end of member declaration
- virtual JsonMap* mapCreate(JsonMapValue* val) { delete val; return NULL;}
- ^
- ParserInterface.h:113:39: error: ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserCleanInterface::mapCreate’ conflicts with a previous declaration
- virtual JsonMap* mapCreate(JsonMapValue* val) { delete val; return NULL;}
- ^
- ParserInterface.h:112:29: note: previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserCleanInterface::mapCreate()’
- virtual JsonMap* mapCreate() { return NULL;}
- ^
- ParserInterface.h:113:51: error: expected ‘)’ before ‘*’ token
- virtual JsonMap* mapCreate(JsonMapValue* val) { delete val; return NULL;}
- ^
- ParserInterface.h:114:53: error: ‘JsonMapValue’ has not been declared
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue> aval(val); delete map; return NULL;}
- ^
- ParserInterface.h:115:13: error: ‘JsonMapValue’ does not name a type
- virtual JsonMapValue* mapCreateElement(std::string* k,JsonValue* val) { std::unique_ptr<JsonValue> aval(val); delete k; return NULL;}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserCleanInterface::mapAppend(ThorsAnvil::Json::JsonMap*, int*)’:
- ParserInterface.h:114:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue> aval(val); delete map; return NULL;}
- ^
- ParserInterface.h:114:99: error: ‘JsonMapValue’ was not declared in this scope
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue> aval(val); delete map; return NULL;}
- ^
- ParserInterface.h:114:121: error: ‘aval’ was not declared in this scope
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue> aval(val); delete map; return NULL;}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray* ThorsAnvil::Json::ParserCleanInterface::arrayAppend(ThorsAnvil::Json::JsonArray*, ThorsAnvil::Json::JsonValue*)’:
- ParserInterface.h:121:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonArray> aarr(arr); delete val; return NULL;}
- ^
- ParserInterface.h:121:108: error: expected primary-expression before ‘>’ token
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonArray> aarr(arr); delete val; return NULL;}
- ^
- ParserInterface.h:121:118: error: ‘aarr’ was not declared in this scope
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonArray> aarr(arr); delete val; return NULL;}
- ^
- ParserInterface.h: At global scope:
- ParserInterface.h:137:39: error: ‘mapCreate’ declared as a ‘virtual’ field
- virtual JsonMap* mapCreate(JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(new JsonMap());amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:137:29: error: expected ‘;’ at end of member declaration
- virtual JsonMap* mapCreate(JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(new JsonMap());amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:137:39: error: ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserDomInterface::mapCreate’ conflicts with a previous declaration
- virtual JsonMap* mapCreate(JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(new JsonMap());amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:136:29: note: previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserDomInterface::mapCreate()’
- virtual JsonMap* mapCreate() { return new JsonMap();}
- ^
- ParserInterface.h:137:51: error: expected ‘)’ before ‘*’ token
- virtual JsonMap* mapCreate(JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(new JsonMap());amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:138:53: error: ‘JsonMapValue’ has not been declared
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:139:13: error: ‘JsonMapValue’ does not name a type
- virtual JsonMapValue* mapCreateElement(std::string* k,JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<std::string> ak(k);
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserDomInterface::mapAppend(ThorsAnvil::Json::JsonMap*, int*)’:
- ParserInterface.h:138:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:138:99: error: ‘JsonMapValue’ was not declared in this scope
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:138:120: error: ‘aval’ was not declared in this scope
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:138:122: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:138:145: error: expected primary-expression before ‘>’ token
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h:138:155: error: ‘amap’ was not declared in this scope
- virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray* ThorsAnvil::Json::ParserDomInterface::arrayCreate(ThorsAnvil::Json::JsonValue*)’:
- ParserInterface.h:145:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:145:108: error: expected primary-expression before ‘>’ token
- virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:145:119: error: ‘aval’ was not declared in this scope
- virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:145:121: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:145:146: error: expected primary-expression before ‘>’ token
- virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:145:170: error: ‘aarr’ was not declared in this scope
- virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray* ThorsAnvil::Json::ParserDomInterface::arrayAppend(ThorsAnvil::Json::JsonArray*, ThorsAnvil::Json::JsonValue*)’:
- ParserInterface.h:146:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:146:108: error: expected primary-expression before ‘>’ token
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:146:119: error: ‘aval’ was not declared in this scope
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:146:121: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:146:146: error: expected primary-expression before ‘>’ token
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h:146:158: error: ‘aarr’ was not declared in this scope
- virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::arrayCreateElement(ThorsAnvil::Json::JsonValue*)’:
- ParserInterface.h:148:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonValue* arrayCreateElement(JsonValue* val) { std::unique_ptr<JsonValue> aval(val); return aval.release();}
- ^
- ParserInterface.h:148:108: error: expected primary-expression before ‘>’ token
- virtual JsonValue* arrayCreateElement(JsonValue* val) { std::unique_ptr<JsonValue> aval(val); return aval.release();}
- ^
- ParserInterface.h:148:119: error: ‘aval’ was not declared in this scope
- virtual JsonValue* arrayCreateElement(JsonValue* val) { std::unique_ptr<JsonValue> aval(val); return aval.release();}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::valueParseMap(ThorsAnvil::Json::JsonMap*)’:
- ParserInterface.h:150:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonValue* valueParseMap(JsonMap* map) { std::unique_ptr<JsonMap> amap(map); return new JsonMapItem(amap);}
- ^
- ParserInterface.h:150:106: error: expected primary-expression before ‘>’ token
- virtual JsonValue* valueParseMap(JsonMap* map) { std::unique_ptr<JsonMap> amap(map); return new JsonMapItem(amap);}
- ^
- ParserInterface.h:150:120: error: ‘amap’ was not declared in this scope
- virtual JsonValue* valueParseMap(JsonMap* map) { std::unique_ptr<JsonMap> amap(map); return new JsonMapItem(amap);}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::valueParseArray(ThorsAnvil::Json::JsonArray*)’:
- ParserInterface.h:151:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonValue* valueParseArray(JsonArray* arr) { std::unique_ptr<JsonArray> aarr(arr); return new JsonArrayItem(aarr);}
- ^
- ParserInterface.h:151:108: error: expected primary-expression before ‘>’ token
- virtual JsonValue* valueParseArray(JsonArray* arr) { std::unique_ptr<JsonArray> aarr(arr); return new JsonArrayItem(aarr);}
- ^
- ParserInterface.h:151:120: error: ‘aarr’ was not declared in this scope
- virtual JsonValue* valueParseArray(JsonArray* arr) { std::unique_ptr<JsonArray> aarr(arr); return new JsonArrayItem(aarr);}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::valueParseString(std::string*)’:
- ParserInterface.h:152:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonValue* valueParseString(std::string* str) { std::unique_ptr<std::string> astr(str); return new JsonStringItem(astr);}
- ^
- ParserInterface.h:152:110: error: expected primary-expression before ‘>’ token
- virtual JsonValue* valueParseString(std::string* str) { std::unique_ptr<std::string> astr(str); return new JsonStringItem(astr);}
- ^
- ParserInterface.h:152:120: error: ‘astr’ was not declared in this scope
- virtual JsonValue* valueParseString(std::string* str) { std::unique_ptr<std::string> astr(str); return new JsonStringItem(astr);}
- ^
- ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::valueParseNumber(std::string*)’:
- ParserInterface.h:153:83: error: ‘unique_ptr’ is not a member of ‘std’
- virtual JsonValue* valueParseNumber(std::string* num) { std::unique_ptr<std::string> anum(num); return new JsonNumberItem(anum);}
- ^
- ParserInterface.h:153:110: error: expected primary-expression before ‘>’ token
- virtual JsonValue* valueParseNumber(std::string* num) { std::unique_ptr<std::string> anum(num); return new JsonNumberItem(anum);}
- ^
- ParserInterface.h:153:120: error: ‘anum’ was not declared in this scope
- virtual JsonValue* valueParseNumber(std::string* num) { std::unique_ptr<std::string> anum(num); return new JsonNumberItem(anum);}
- ^
- ParserShiftReduce.y: At global scope:
- ParserShiftReduce.y:19:25: error: ‘ThorsAnvil::Json::JsonMapValue’ has not been declared
- using ThorsAnvil::Json::JsonMapValue;
- ^
- In file included from ParserShiftReduce.tab.cpp:63:0:
- ParserShiftReduce.y:33:5: error: ‘JsonMapValue’ does not name a type
- JsonMapValue* jsonMapValue;
- ^
- ParserShiftReduce.y: In member function ‘virtual int yy::ParserShiftReduce::parse()’:
- ParserShiftReduce.y:73:62: error: ‘union yy::ParserShiftReduce::semantic_type’ has no member named ‘jsonMapValue’
- JsonMapValueList : JsonMapValue {$$ = pi.mapCreate($1);}
- ^
- ParserShiftReduce.y:74:91: error: ‘union yy::ParserShiftReduce::semantic_type’ has no member named ‘jsonMapValue’
- | JsonMapValueList ',' JsonMapValue {$$ = pi.mapAppend($1, $3);}
- ^
- ParserShiftReduce.y:75:19: error: ‘union yy::ParserShiftReduce::semantic_type’ has no member named ‘jsonMapValue’
- JsonMapValue : JsonMapKey JsonValue {$$ = pi.mapCreateElement($1, $2);}
- ^
- ParserShiftReduce.y:75:38: error: ‘struct ThorsAnvil::Json::ParserInterface’ has no member named ‘mapCreateElement’
- JsonMapValue : JsonMapKey JsonValue {$$ = pi.mapCreateElement($1, $2);}
- ^
- ParserShiftReduce.y: At global scope:
- ParserShiftReduce.y:111:48: error: variable or field ‘error’ declared void
- void yy::ParserShiftReduce::error(yy::location const&, std::string const& msg)
- ^
- ParserShiftReduce.y:111:35: error: ‘location’ is not a member of ‘yy’
- void yy::ParserShiftReduce::error(yy::location const&, std::string const& msg)
- ^
- ParserShiftReduce.y:111:68: error: expected primary-expression before ‘const’
- void yy::ParserShiftReduce::error(yy::location const&, std::string const& msg)
- ^
- cc1plus: error: unrecognized command line option "-Wno-deprecated-register" [-Werror]
- cc1plus: all warnings being treated as errors
- make[2]: Leaving directory `/home/adminuser/Downloads/new/ThorsSerializer/Json'
- make[1]: Leaving directory `/home/adminuser/Downloads/new/ThorsSerializer/Json'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement