Hello all
I got the following errors when compiling from sources on RPi3. I use revision 2706.. Please advise
[ 77%] Built target indi_watchdog
Scanning dependencies of target indi_wunderground_weather
[ 78%] Building CXX object CMakeFiles/indi_wunderground_weather.dir/drivers/weather/gason.cpp.o
In file included from /home/pi/INDI/libindi/drivers/weather/gason.cpp:24:
/home/pi/INDI/libindi/drivers/weather/gason.h:54: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h: In function ‘JsonIterator end(JsonValue)’:
/home/pi/INDI/libindi/drivers/weather/gason.h:109: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h: At global scope:
/home/pi/INDI/libindi/drivers/weather/gason.h:137: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h:137: error: ISO C++ forbids initialization of member ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:137: error: making ‘head’ static
/home/pi/INDI/libindi/drivers/weather/gason.h:137: error: invalid in-class initialization of static data member of non-integral type ‘JsonAllocator::Zone*’
/home/pi/INDI/libindi/drivers/weather/gason.h: In constructor ‘JsonAllocator::JsonAllocator(JsonAllocator&&)’:
/home/pi/INDI/libindi/drivers/weather/gason.h:143: error: class ‘JsonAllocator’ does not have any field named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:143: error: ‘class JsonAllocator’ has no member named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:144: error: ‘class JsonAllocator’ has no member named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:144: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h: In member function ‘JsonAllocator& JsonAllocator::operator=(JsonAllocator&&)’:
/home/pi/INDI/libindi/drivers/weather/gason.h:147: error: ‘head’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h:147: error: ‘class JsonAllocator’ has no member named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:148: error: ‘class JsonAllocator’ has no member named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:148: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp: In member function ‘void* JsonAllocator::allocate(size_t)’:
/home/pi/INDI/libindi/drivers/weather/gason.cpp:45: error: ‘head’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:53: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:56: error: ‘head’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:56: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp: In member function ‘void JsonAllocator::deallocate()’:
/home/pi/INDI/libindi/drivers/weather/gason.cpp:67: error: ‘head’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp: In function ‘JsonValue listToValue(JsonTag, JsonNode*)’:
/home/pi/INDI/libindi/drivers/weather/gason.cpp:153: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:156: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp: In function ‘int jsonParse(char*, char**, JsonValue*, JsonAllocator&)’:
/home/pi/INDI/libindi/drivers/weather/gason.cpp:163: error: the default argument for parameter 1 of ‘JsonValue::JsonValue(JsonTag, void*)’ has not yet been parsed
/home/pi/INDI/libindi/drivers/weather/gason.cpp:266: error: the default argument for parameter 1 of ‘JsonValue::JsonValue(JsonTag, void*)’ has not yet been parsed
/home/pi/INDI/libindi/drivers/weather/gason.cpp:272: error: the default argument for parameter 1 of ‘JsonValue::JsonValue(JsonTag, void*)’ has not yet been parsed
/home/pi/INDI/libindi/drivers/weather/gason.cpp:278: error: the default argument for parameter 1 of ‘JsonValue::JsonValue(JsonTag, void*)’ has not yet been parsed
/home/pi/INDI/libindi/drivers/weather/gason.cpp:293: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:300: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:344: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:348: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:350: error: ‘nullptr’ was not declared in this scope
CMakeFiles/indi_wunderground_weather.dir/build.make:54: recipe for target 'CMakeFiles/indi_wunderground_weather.dir/drivers/weather/gason.cpp.o' failed
make[2]: *** [CMakeFiles/indi_wunderground_weather.dir/drivers/weather/gason.cpp.o] Error 1
CMakeFiles/Makefile2:1466: recipe for target 'CMakeFiles/indi_wunderground_weather.dir/all' failed
make[1]: *** [CMakeFiles/indi_wunderground_weather.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
Thanks.
Anat
I got the following errors when compiling from sources on RPi3. I use revision 2706.. Please advise
[ 77%] Built target indi_watchdog
Scanning dependencies of target indi_wunderground_weather
[ 78%] Building CXX object CMakeFiles/indi_wunderground_weather.dir/drivers/weather/gason.cpp.o
In file included from /home/pi/INDI/libindi/drivers/weather/gason.cpp:24:
/home/pi/INDI/libindi/drivers/weather/gason.h:54: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h: In function ‘JsonIterator end(JsonValue)’:
/home/pi/INDI/libindi/drivers/weather/gason.h:109: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h: At global scope:
/home/pi/INDI/libindi/drivers/weather/gason.h:137: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h:137: error: ISO C++ forbids initialization of member ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:137: error: making ‘head’ static
/home/pi/INDI/libindi/drivers/weather/gason.h:137: error: invalid in-class initialization of static data member of non-integral type ‘JsonAllocator::Zone*’
/home/pi/INDI/libindi/drivers/weather/gason.h: In constructor ‘JsonAllocator::JsonAllocator(JsonAllocator&&)’:
/home/pi/INDI/libindi/drivers/weather/gason.h:143: error: class ‘JsonAllocator’ does not have any field named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:143: error: ‘class JsonAllocator’ has no member named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:144: error: ‘class JsonAllocator’ has no member named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:144: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h: In member function ‘JsonAllocator& JsonAllocator::operator=(JsonAllocator&&)’:
/home/pi/INDI/libindi/drivers/weather/gason.h:147: error: ‘head’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.h:147: error: ‘class JsonAllocator’ has no member named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:148: error: ‘class JsonAllocator’ has no member named ‘head’
/home/pi/INDI/libindi/drivers/weather/gason.h:148: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp: In member function ‘void* JsonAllocator::allocate(size_t)’:
/home/pi/INDI/libindi/drivers/weather/gason.cpp:45: error: ‘head’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:53: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:56: error: ‘head’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:56: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp: In member function ‘void JsonAllocator::deallocate()’:
/home/pi/INDI/libindi/drivers/weather/gason.cpp:67: error: ‘head’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp: In function ‘JsonValue listToValue(JsonTag, JsonNode*)’:
/home/pi/INDI/libindi/drivers/weather/gason.cpp:153: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:156: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp: In function ‘int jsonParse(char*, char**, JsonValue*, JsonAllocator&)’:
/home/pi/INDI/libindi/drivers/weather/gason.cpp:163: error: the default argument for parameter 1 of ‘JsonValue::JsonValue(JsonTag, void*)’ has not yet been parsed
/home/pi/INDI/libindi/drivers/weather/gason.cpp:266: error: the default argument for parameter 1 of ‘JsonValue::JsonValue(JsonTag, void*)’ has not yet been parsed
/home/pi/INDI/libindi/drivers/weather/gason.cpp:272: error: the default argument for parameter 1 of ‘JsonValue::JsonValue(JsonTag, void*)’ has not yet been parsed
/home/pi/INDI/libindi/drivers/weather/gason.cpp:278: error: the default argument for parameter 1 of ‘JsonValue::JsonValue(JsonTag, void*)’ has not yet been parsed
/home/pi/INDI/libindi/drivers/weather/gason.cpp:293: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:300: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:344: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:348: error: ‘nullptr’ was not declared in this scope
/home/pi/INDI/libindi/drivers/weather/gason.cpp:350: error: ‘nullptr’ was not declared in this scope
CMakeFiles/indi_wunderground_weather.dir/build.make:54: recipe for target 'CMakeFiles/indi_wunderground_weather.dir/drivers/weather/gason.cpp.o' failed
make[2]: *** [CMakeFiles/indi_wunderground_weather.dir/drivers/weather/gason.cpp.o] Error 1
CMakeFiles/Makefile2:1466: recipe for target 'CMakeFiles/indi_wunderground_weather.dir/all' failed
make[1]: *** [CMakeFiles/indi_wunderground_weather.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
Thanks.
Anat