Hi,
I failed to build this with the following log. Can you check this out?
[ 12%] Linking C static library libclhash.a
[ 12%] Built target clhash
[ 18%] Building CXX object src/component_types/CMakeFiles/component_types.dir/base_packed_component.cpp.o
In file included from /home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.cpp:7:0:
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:51:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
T *data_start_ = nullptr;
^
In file included from /home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.cpp:7:0:
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:51:20: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
T *data_start_ = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:52:10: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
T *p = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:55:27: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned end_of_bits_ = 0;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:51:20: error: ‘nullptr’ was not declared in this scope
T *data_start_ = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:52:10: error: ‘nullptr’ was not declared in this scope
T *p = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:66:25: error: ‘uint64_t’ does not name a type
void set_hacked(const uint64_t _old_size, const uint64_t _old_num_vars) {
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:66:51: error: ‘uint64_t’ does not name a type
void set_hacked(const uint64_t _old_size, const uint64_t _old_num_vars) {
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:207:21: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned* data_ = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:209:3: error: ‘uint64_t’ does not name a type
uint64_t* clhashkey_ = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:212:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned hashkey_ = 0;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:216:29: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned creation_time_ = 1;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:217:20: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned hack_ = 0;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:218:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned old_size = 0;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:219:27: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned old_num_vars = 0;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:225:48: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned length_solution_period_and_flags_ = 0;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:207:21: error: ‘nullptr’ was not declared in this scope
unsigned* data_ = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h: In member function ‘void BasePackedComponent::set_hacked(int, int)’:
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:70:13: error: ‘nullptr’ was not declared in this scope
data_ = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h: In destructor ‘BasePackedComponent::~BasePackedComponent()’:
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:106:9: error: ‘clhashkey_’ was not declared in this scope
if (clhashkey_){
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:107:17: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
delete [] clhashkey_;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h: In static member function ‘static void BasePackedComponent::outbit(unsigned int)’:
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:111:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto i=0; i<32;i++){
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:111:13: error: ‘i’ does not name a type
for(auto i=0; i<32;i++){
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:111:18: error: expected ‘;’ before ‘i’
for(auto i=0; i<32;i++){
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:111:18: error: ‘i’ was not declared in this scope
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h: In member function ‘void BasePackedComponent::clear()’:
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:192:13: error: ‘nullptr’ was not declared in this scope
data_ = nullptr;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:193:9: error: ‘clhashkey_’ was not declared in this scope
if (clhashkey_){
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:194:17: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
delete [] clhashkey_;
^
/home/smkim/Desktop/tools/ganak/src/component_types/base_packed_component.h:196:5: error: ‘clhashkey_’ was not declared in this scope
clhashkey_ = nullptr;
^
src/component_types/CMakeFiles/component_types.dir/build.make:62: recipe for target 'src/component_types/CMakeFiles/component_types.dir/base_packed_component.cpp.o' failed
make[2]: *** [src/component_types/CMakeFiles/component_types.dir/base_packed_component.cpp.o] Error 1
CMakeFiles/Makefile2:185: recipe for target 'src/component_types/CMakeFiles/component_types.dir/all' failed
make[1]: *** [src/component_types/CMakeFiles/component_types.dir/all] Error 2
Makefile:84: recipe for target 'all' failed
make: *** [all] Error 2
Hi, I failed to build this with the following log. Can you check this out?