(py27) dlr@dlr-ThinkStation-S20:~/Project/caffe$ make all -j8
CXX src/caffe/util/octree.cpp
CXX src/caffe/util/octree_info.cpp
CXX src/caffe/util/octree_parser.cpp
CXX src/caffe/layers/octree_property_layer.cpp
CXX src/caffe/layers/octree_full_voxel_layer.cpp
CXX src/caffe/layers/octree_deconv_layer.cpp
CXX src/caffe/layers/octree_database_layer.cpp
CXX src/caffe/layers/normalize_layer.cpp
src/caffe/util/octree_info.cpp: In member function ‘bool caffe::OctreeInfo::check_format(std::__cxx11::string&) const’:
src/caffe/util/octree_info.cpp:33:18: error: ‘to_string’ is not a member of ‘std’
string str = std::to_string(i);
^
src/caffe/util/octree_info.cpp:36:11: error: ‘to_string’ is not a member of ‘std’
std::to_string(channel_max[i]) + "].\n";
^
src/caffe/util/octree_info.cpp:42:63: error: ‘to_string’ is not a member of ‘std’
msg += "The locations_[" + str + "] should be -1 or " + std::to_string(depth_) + ".\n";
^
Makefile:581: recipe for target '.~/Project/caffe/build_release/src/caffe/util/octree_info.o' failed
make: *** [.~/Project/caffe/build_release/src/caffe/util/octree_info.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/caffe/util/octree_parser.cpp:1:0:
./include/caffe/util/octree_parser.hpp:22:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
In file included from src/caffe/util/octree_parser.cpp:1:0:
./include/caffe/util/octree_parser.hpp:25:56: error: ‘nullptr’ was not declared in this scope
void set_gpu(const void* ptr, const void* oct_info = nullptr);
^
./include/caffe/util/octree_parser.hpp:26:49: error: ‘nullptr’ was not declared in this scope
void set_cpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp:27:49: error: ‘nullptr’ was not declared in this scope
void set_gpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp: In constructor ‘caffe::OctreeParser::OctreeParser()’:
./include/caffe/util/octree_parser.hpp:22:32: error: ‘nullptr’ was not declared in this scope
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
./include/caffe/util/octree_parser.hpp: In member function ‘bool caffe::OctreeParser::is_empty() const’:
./include/caffe/util/octree_parser.hpp:33:43: error: ‘nullptr’ was not declared in this scope
bool is_empty() const { return info_ == nullptr; }
^
src/caffe/util/octree_parser.cpp: In member function ‘void caffe::OctreeParser::set_gpu(const void*, const void*)’:
src/caffe/util/octree_parser.cpp:18:19: error: ‘nullptr’ was not declared in this scope
if (oct_info == nullptr) {
^
src/caffe/util/octree_parser.cpp: In member function ‘void caffe::OctreeParser::set_cpu(void*, caffe::OctreeInfo*)’:
src/caffe/util/octree_parser.cpp:30:18: error: ‘nullptr’ was not declared in this scope
if (octinfo != nullptr) { // update the OctreeInfo with octinfo
^
src/caffe/util/octree_parser.cpp: In member function ‘void caffe::OctreeParser::set_gpu(void*, caffe::OctreeInfo*)’:
src/caffe/util/octree_parser.cpp:39:18: error: ‘nullptr’ was not declared in this scope
if (octinfo != nullptr) { // update the OctreeInfo with octinfo
^
In file included from ./include/caffe/common.hpp:6:0,
from src/caffe/util/octree_parser.cpp:3:
src/caffe/util/octree_parser.cpp: In member function ‘const char* caffe::OctreeParser::ptr_cpu(caffe::OctreeParser::PropType, int) const’:
src/caffe/util/octree_parser.cpp:80:24: error: ‘nullptr’ was not declared in this scope
CHECK(h_metadata_ != nullptr);
^
src/caffe/util/octree_parser.cpp: In member function ‘const char* caffe::OctreeParser::ptr_gpu(caffe::OctreeParser::PropType, int) const’:
src/caffe/util/octree_parser.cpp:143:24: error: ‘nullptr’ was not declared in this scope
CHECK(d_metadata_ != nullptr);
^
Makefile:581: recipe for target '.~/Project/caffe/build_release/src/caffe/util/octree_parser.o' failed
make: *** [.~/Project/caffe/build_release/src/caffe/util/octree_parser.o] Error 1
In file included from /usr/include/c++/5/unordered_map:35:0,
from ./include/caffe/util/octree.hpp:5,
from ./include/caffe/layers/octree_full_voxel_layer.hpp:9,
from src/caffe/layers/octree_full_voxel_layer.cpp:3:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from ./include/caffe/util/octree.hpp:8:0,
from ./include/caffe/layers/octree_full_voxel_layer.hpp:9,
from src/caffe/layers/octree_full_voxel_layer.cpp:3:
./include/caffe/util/octree_parser.hpp:22:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
./include/caffe/util/octree_parser.hpp:25:56: error: ‘nullptr’ was not declared in this scope
void set_gpu(const void* ptr, const void* oct_info = nullptr);
^
./include/caffe/util/octree_parser.hpp:26:49: error: ‘nullptr’ was not declared in this scope
void set_cpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp:27:49: error: ‘nullptr’ was not declared in this scope
void set_gpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp: In constructor ‘caffe::OctreeParser::OctreeParser()’:
./include/caffe/util/octree_parser.hpp:22:32: error: ‘nullptr’ was not declared in this scope
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
./include/caffe/util/octree_parser.hpp: In member function ‘bool caffe::OctreeParser::is_empty() const’:
./include/caffe/util/octree_parser.hpp:33:43: error: ‘nullptr’ was not declared in this scope
bool is_empty() const { return info_ == nullptr; }
^
In file included from ./include/caffe/layers/octree_full_voxel_layer.hpp:9:0,
from src/caffe/layers/octree_full_voxel_layer.cpp:3:
./include/caffe/util/octree.hpp: At global scope:
./include/caffe/util/octree.hpp:11:12: error: ‘std::unordered_map’ has not been declared
using std::unordered_map;
^
./include/caffe/util/octree.hpp:49:3: error: ‘unordered_map’ does not name a type
unordered_map<string, int> ni_map_;
^
In file included from src/caffe/layers/octree_full_voxel_layer.cpp:3:0:
./include/caffe/layers/octree_full_voxel_layer.hpp:21:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
./include/caffe/layers/octree_full_voxel_layer.hpp:30:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
./include/caffe/layers/octree_full_voxel_layer.hpp:32:77: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) override;
^
./include/caffe/layers/octree_full_voxel_layer.hpp:35:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
./include/caffe/layers/octree_full_voxel_layer.hpp:37:77: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) override;
^
src/caffe/layers/octree_full_voxel_layer.cpp: In member function ‘void caffe::Octree2FullVoxelLayer<Dtype>::build_mapping(int)’:
src/caffe/layers/octree_full_voxel_layer.cpp:100:27: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
vector<int> mapper_shape{ n*n * n };
^
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/octree_full_voxel_layer.hpp:6,
from src/caffe/layers/octree_full_voxel_layer.cpp:3:
src/caffe/layers/octree_full_voxel_layer.cpp: In instantiation of ‘void caffe::Octree2FullVoxelLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = float]’:
src/caffe/layers/octree_full_voxel_layer.cpp:129:1: required from here
src/caffe/layers/octree_full_voxel_layer.cpp:10:3: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
CHECK(this->layer_param_.octree_param().has_curr_depth())
^
src/caffe/layers/octree_full_voxel_layer.cpp:13:15: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
curr_depth_ = this->layer_param_.octree_param().curr_depth();
^
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/octree_full_voxel_layer.hpp:6,
from src/caffe/layers/octree_full_voxel_layer.cpp:3:
src/caffe/layers/octree_full_voxel_layer.cpp:17:3: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
CHECK(this->layer_param_.octree_param().has_batch_size())
^
src/caffe/layers/octree_full_voxel_layer.cpp:20:15: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
batch_size_ = this->layer_param_.octree_param().batch_size();
^
src/caffe/layers/octree_full_voxel_layer.cpp: In instantiation of ‘void caffe::Octree2FullVoxelLayer<Dtype>::build_mapping(int) [with Dtype = float]’:
src/caffe/layers/octree_full_voxel_layer.cpp:129:1: required from here
src/caffe/layers/octree_full_voxel_layer.cpp:100:37: error: in C++98 ‘mapper_shape’ must be initialized by constructor, not by ‘{...}’
vector<int> mapper_shape{ n*n * n };
^
src/caffe/layers/octree_full_voxel_layer.cpp:100:37: warning: narrowing conversion of ‘((n * n) * n)’ from ‘int’ to ‘std::vector<int>::size_type {aka long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/octree_full_voxel_layer.hpp:6,
from src/caffe/layers/octree_full_voxel_layer.cpp:3:
src/caffe/layers/octree_full_voxel_layer.cpp: In instantiation of ‘void caffe::Octree2FullVoxelLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]’:
src/caffe/layers/octree_full_voxel_layer.cpp:129:1: required from here
src/caffe/layers/octree_full_voxel_layer.cpp:10:3: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
CHECK(this->layer_param_.octree_param().has_curr_depth())
^
src/caffe/layers/octree_full_voxel_layer.cpp:13:15: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
curr_depth_ = this->layer_param_.octree_param().curr_depth();
^
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/octree_full_voxel_layer.hpp:6,
from src/caffe/layers/octree_full_voxel_layer.cpp:3:
src/caffe/layers/octree_full_voxel_layer.cpp:17:3: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
CHECK(this->layer_param_.octree_param().has_batch_size())
^
src/caffe/layers/octree_full_voxel_layer.cpp:20:15: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
batch_size_ = this->layer_param_.octree_param().batch_size();
^
src/caffe/layers/octree_full_voxel_layer.cpp: In instantiation of ‘void caffe::Octree2FullVoxelLayer<Dtype>::build_mapping(int) [with Dtype = double]’:
src/caffe/layers/octree_full_voxel_layer.cpp:129:1: required from here
src/caffe/layers/octree_full_voxel_layer.cpp:100:37: error: in C++98 ‘mapper_shape’ must be initialized by constructor, not by ‘{...}’
vector<int> mapper_shape{ n*n * n };
^
src/caffe/layers/octree_full_voxel_layer.cpp:100:37: warning: narrowing conversion of ‘((n * n) * n)’ from ‘int’ to ‘std::vector<int>::size_type {aka long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
Makefile:581: recipe for target '.~/Project/caffe/build_release/src/caffe/layers/octree_full_voxel_layer.o' failed
make: *** [.~/Project/caffe/build_release/src/caffe/layers/octree_full_voxel_layer.o] Error 1
In file included from /usr/include/c++/5/unordered_map:35:0,
from ./include/caffe/util/octree.hpp:5,
from ./include/caffe/layers/octree_base_conv_layer.hpp:9,
from ./include/caffe/layers/octree_deconv_layer.hpp:7,
from src/caffe/layers/octree_deconv_layer.cpp:3:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from ./include/caffe/util/octree.hpp:8:0,
from ./include/caffe/layers/octree_base_conv_layer.hpp:9,
from ./include/caffe/layers/octree_deconv_layer.hpp:7,
from src/caffe/layers/octree_deconv_layer.cpp:3:
./include/caffe/util/octree_parser.hpp:22:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
./include/caffe/util/octree_parser.hpp:25:56: error: ‘nullptr’ was not declared in this scope
void set_gpu(const void* ptr, const void* oct_info = nullptr);
^
./include/caffe/util/octree_parser.hpp:26:49: error: ‘nullptr’ was not declared in this scope
void set_cpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp:27:49: error: ‘nullptr’ was not declared in this scope
void set_gpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp: In constructor ‘caffe::OctreeParser::OctreeParser()’:
./include/caffe/util/octree_parser.hpp:22:32: error: ‘nullptr’ was not declared in this scope
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
./include/caffe/util/octree_parser.hpp: In member function ‘bool caffe::OctreeParser::is_empty() const’:
./include/caffe/util/octree_parser.hpp:33:43: error: ‘nullptr’ was not declared in this scope
bool is_empty() const { return info_ == nullptr; }
^
In file included from ./include/caffe/layers/octree_base_conv_layer.hpp:9:0,
from ./include/caffe/layers/octree_deconv_layer.hpp:7,
from src/caffe/layers/octree_deconv_layer.cpp:3:
./include/caffe/util/octree.hpp: At global scope:
./include/caffe/util/octree.hpp:11:12: error: ‘std::unordered_map’ has not been declared
using std::unordered_map;
^
./include/caffe/util/octree.hpp:49:3: error: ‘unordered_map’ does not name a type
unordered_map<string, int> ni_map_;
^
In file included from ./include/caffe/layers/octree_deconv_layer.hpp:7:0,
from src/caffe/layers/octree_deconv_layer.cpp:3:
./include/caffe/layers/octree_base_conv_layer.hpp:23:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
In file included from src/caffe/layers/octree_deconv_layer.cpp:3:0:
./include/caffe/layers/octree_deconv_layer.hpp:24:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
./include/caffe/layers/octree_deconv_layer.hpp:29:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
Makefile:581: recipe for target '.~/Project/caffe/build_release/src/caffe/layers/octree_deconv_layer.o' failed
make: *** [.~/Project/caffe/build_release/src/caffe/layers/octree_deconv_layer.o] Error 1
In file included from src/caffe/layers/normalize_layer.cpp:7:0:
./include/caffe/layers/normalize_layer.hpp:41:22: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
const Dtype eps_ = 1.0e-30;
^
src/caffe/layers/normalize_layer.cpp: In instantiation of ‘void caffe::NormalizeLayer<Dtype>::Backward_cpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = float]’:
src/caffe/layers/normalize_layer.cpp:88:1: required from here
src/caffe/layers/normalize_layer.cpp:63:16: warning: unused variable ‘bottom_data’ [-Wunused-variable]
const Dtype* bottom_data = bottom[0]->cpu_data();
^
src/caffe/layers/normalize_layer.cpp: In instantiation of ‘void caffe::NormalizeLayer<Dtype>::Backward_cpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]’:
src/caffe/layers/normalize_layer.cpp:88:1: required from here
src/caffe/layers/normalize_layer.cpp:63:16: warning: unused variable ‘bottom_data’ [-Wunused-variable]
In file included from /usr/include/c++/5/unordered_map:35:0,
from ./include/caffe/util/octree.hpp:5,
from ./include/caffe/layers/octree_property_layer.hpp:8,
from src/caffe/layers/octree_database_layer.cpp:2:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from ./include/caffe/util/octree.hpp:8:0,
from ./include/caffe/layers/octree_property_layer.hpp:8,
from src/caffe/layers/octree_database_layer.cpp:2:
./include/caffe/util/octree_parser.hpp:22:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
In file included from ./include/caffe/util/octree.hpp:8:0,
from ./include/caffe/layers/octree_property_layer.hpp:8,
from src/caffe/layers/octree_database_layer.cpp:2:
./include/caffe/util/octree_parser.hpp:25:56: error: ‘nullptr’ was not declared in this scope
void set_gpu(const void* ptr, const void* oct_info = nullptr);
^
./include/caffe/util/octree_parser.hpp:26:49: error: ‘nullptr’ was not declared in this scope
void set_cpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp:27:49: error: ‘nullptr’ was not declared in this scope
void set_gpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp: In constructor ‘caffe::OctreeParser::OctreeParser()’:
./include/caffe/util/octree_parser.hpp:22:32: error: ‘nullptr’ was not declared in this scope
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
./include/caffe/util/octree_parser.hpp: In member function ‘bool caffe::OctreeParser::is_empty() const’:
./include/caffe/util/octree_parser.hpp:33:43: error: ‘nullptr’ was not declared in this scope
bool is_empty() const { return info_ == nullptr; }
^
In file included from ./include/caffe/layers/octree_property_layer.hpp:8:0,
from src/caffe/layers/octree_database_layer.cpp:2:
./include/caffe/util/octree.hpp: At global scope:
./include/caffe/util/octree.hpp:11:12: error: ‘std::unordered_map’ has not been declared
using std::unordered_map;
^
./include/caffe/util/octree.hpp:49:3: error: ‘unordered_map’ does not name a type
unordered_map<string, int> ni_map_;
^
In file included from src/caffe/layers/octree_database_layer.cpp:2:0:
./include/caffe/layers/octree_property_layer.hpp:31:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
./include/caffe/layers/octree_property_layer.hpp:33:77: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) override;
^
./include/caffe/layers/octree_property_layer.hpp:36:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
./include/caffe/layers/octree_property_layer.hpp:38:77: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) override;
^
src/caffe/layers/octree_database_layer.cpp: In member function ‘virtual void caffe::OctreeDataBaseLayer<Dtype>::DataLayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’:
src/caffe/layers/octree_database_layer.cpp:36:17: error: ‘class caffe::LayerParameter’ has no member named ‘mutable_octree_param’
feature_param.mutable_octree_param()->set_content_flag("feature");
^
src/caffe/layers/octree_database_layer.cpp:45:25: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
vector<int> data_shape{ 1, signal_channel_, 8, 1 };
^
src/caffe/layers/octree_database_layer.cpp:51:28: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
vector<int> label_shape{ batch_size_ };
^
src/caffe/layers/octree_database_layer.cpp:58:33: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
top[2]->Reshape(vector<int> {1});
^
src/caffe/layers/octree_database_layer.cpp: In member function ‘virtual void caffe::OctreeDataBaseLayer<Dtype>::load_batch(caffe::Batch<Dtype>*)’:
src/caffe/layers/octree_database_layer.cpp:81:23: error: ‘nullptr’ was not declared in this scope
Dtype* label_data = nullptr;
^
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/data_layer.hpp:6,
from ./include/caffe/layers/octree_database_layer.hpp:4,
from src/caffe/layers/octree_database_layer.cpp:1:
src/caffe/layers/octree_database_layer.cpp: In instantiation of ‘void caffe::OctreeDataBaseLayer<Dtype>::DataLayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = float]’:
src/caffe/layers/octree_database_layer.cpp:179:1: required from here
src/caffe/layers/octree_database_layer.cpp:21:3: error: ‘class caffe::LayerParameter’ has no member named ‘has_octree_param’
CHECK(this->layer_param_.has_octree_param()) << "The octree_param must be set";
^
src/caffe/layers/octree_database_layer.cpp:22:19: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
signal_channel_ = this->layer_param_.octree_param().signal_channel();
^
src/caffe/layers/octree_database_layer.cpp:23:15: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
curr_depth_ = this->layer_param_.octree_param().curr_depth();
^
src/caffe/layers/octree_database_layer.cpp:45:52: error: in C++98 ‘data_shape’ must be initialized by constructor, not by ‘{...}’
vector<int> data_shape{ 1, signal_channel_, 8, 1 };
^
src/caffe/layers/octree_database_layer.cpp:45:52: error: no matching function for call to ‘std::vector<int>::vector(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/data_layer.hpp:4,
from ./include/caffe/layers/octree_database_layer.hpp:4,
from src/caffe/layers/octree_database_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/layers/octree_database_layer.cpp:45:52: note: cannot convert ‘8’ (type ‘int’) to type ‘const allocator_type& {aka const std::allocator<int>&}’
vector<int> data_shape{ 1, signal_channel_, 8, 1 };
^
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/data_layer.hpp:4,
from ./include/caffe/layers/octree_database_layer.hpp:4,
from src/caffe/layers/octree_database_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 4 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 4 provided
src/caffe/layers/octree_database_layer.cpp:51:42: error: in C++98 ‘label_shape’ must be initialized by constructor, not by ‘{...}’
vector<int> label_shape{ batch_size_ };
^
src/caffe/layers/octree_database_layer.cpp:51:42: warning: narrowing conversion of ‘((caffe::OctreeDataBaseLayer<float>*)this)->caffe::OctreeDataBaseLayer<float>::batch_size_’ from ‘int’ to ‘std::vector<int>::size_type {aka long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/data_layer.hpp:6,
from ./include/caffe/layers/octree_database_layer.hpp:4,
from src/caffe/layers/octree_database_layer.cpp:1:
src/caffe/layers/octree_database_layer.cpp: In instantiation of ‘void caffe::OctreeDataBaseLayer<Dtype>::DataLayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]’:
src/caffe/layers/octree_database_layer.cpp:179:1: required from here
src/caffe/layers/octree_database_layer.cpp:21:3: error: ‘class caffe::LayerParameter’ has no member named ‘has_octree_param’
CHECK(this->layer_param_.has_octree_param()) << "The octree_param must be set";
^
src/caffe/layers/octree_database_layer.cpp:22:19: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
signal_channel_ = this->layer_param_.octree_param().signal_channel();
^
src/caffe/layers/octree_database_layer.cpp:23:15: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
curr_depth_ = this->layer_param_.octree_param().curr_depth();
^
src/caffe/layers/octree_database_layer.cpp:45:52: error: in C++98 ‘data_shape’ must be initialized by constructor, not by ‘{...}’
vector<int> data_shape{ 1, signal_channel_, 8, 1 };
^
src/caffe/layers/octree_database_layer.cpp:45:52: error: no matching function for call to ‘std::vector<int>::vector(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/data_layer.hpp:4,
from ./include/caffe/layers/octree_database_layer.hpp:4,
from src/caffe/layers/octree_database_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/layers/octree_database_layer.cpp:45:52: note: cannot convert ‘8’ (type ‘int’) to type ‘const allocator_type& {aka const std::allocator<int>&}’
vector<int> data_shape{ 1, signal_channel_, 8, 1 };
^
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/data_layer.hpp:4,
from ./include/caffe/layers/octree_database_layer.hpp:4,
from src/caffe/layers/octree_database_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 4 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 4 provided
src/caffe/layers/octree_database_layer.cpp:51:42: error: in C++98 ‘label_shape’ must be initialized by constructor, not by ‘{...}’
vector<int> label_shape{ batch_size_ };
^
src/caffe/layers/octree_database_layer.cpp:51:42: warning: narrowing conversion of ‘((caffe::OctreeDataBaseLayer<double>*)this)->caffe::OctreeDataBaseLayer<double>::batch_size_’ from ‘int’ to ‘std::vector<int>::size_type {aka long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
Makefile:581: recipe for target '.~/Project/caffe/build_release/src/caffe/layers/octree_database_layer.o' failed
make: *** [.~/Project/caffe/build_release/src/caffe/layers/octree_database_layer.o] Error 1
In file included from /usr/include/c++/5/unordered_map:35:0,
from ./include/caffe/util/octree.hpp:5,
from ./include/caffe/layers/octree_property_layer.hpp:8,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from ./include/caffe/util/octree.hpp:8:0,
from ./include/caffe/layers/octree_property_layer.hpp:8,
from src/caffe/layers/octree_property_layer.cpp:1:
./include/caffe/util/octree_parser.hpp:22:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
In file included from ./include/caffe/util/octree.hpp:8:0,
from ./include/caffe/layers/octree_property_layer.hpp:8,
from src/caffe/layers/octree_property_layer.cpp:1:
./include/caffe/util/octree_parser.hpp:25:56: error: ‘nullptr’ was not declared in this scope
void set_gpu(const void* ptr, const void* oct_info = nullptr);
^
./include/caffe/util/octree_parser.hpp:26:49: error: ‘nullptr’ was not declared in this scope
void set_cpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp:27:49: error: ‘nullptr’ was not declared in this scope
void set_gpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp: In constructor ‘caffe::OctreeParser::OctreeParser()’:
./include/caffe/util/octree_parser.hpp:22:32: error: ‘nullptr’ was not declared in this scope
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
./include/caffe/util/octree_parser.hpp: In member function ‘bool caffe::OctreeParser::is_empty() const’:
./include/caffe/util/octree_parser.hpp:33:43: error: ‘nullptr’ was not declared in this scope
bool is_empty() const { return info_ == nullptr; }
^
In file included from ./include/caffe/layers/octree_property_layer.hpp:8:0,
from src/caffe/layers/octree_property_layer.cpp:1:
./include/caffe/util/octree.hpp: At global scope:
./include/caffe/util/octree.hpp:11:12: error: ‘std::unordered_map’ has not been declared
using std::unordered_map;
^
./include/caffe/util/octree.hpp:49:3: error: ‘unordered_map’ does not name a type
unordered_map<string, int> ni_map_;
^
In file included from src/caffe/layers/octree_property_layer.cpp:1:0:
./include/caffe/layers/octree_property_layer.hpp:31:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
./include/caffe/layers/octree_property_layer.hpp:33:77: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) override;
^
./include/caffe/layers/octree_property_layer.hpp:36:38: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<Blob<Dtype>*>& top) override;
^
./include/caffe/layers/octree_property_layer.hpp:38:77: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) override;
^
src/caffe/layers/octree_property_layer.cpp: In member function ‘virtual void caffe::OctreePropertyLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’:
src/caffe/layers/octree_property_layer.cpp:13:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
const auto& octree_param = this->layer_param_.octree_param();
^
src/caffe/layers/octree_property_layer.cpp:13:15: error: ISO C++ forbids declaration of ‘octree_param’ with no type [-fpermissive]
const auto& octree_param = this->layer_param_.octree_param();
^
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/octree_property_layer.hpp:6,
from src/caffe/layers/octree_property_layer.cpp:1:
src/caffe/layers/octree_property_layer.cpp:14:22: error: request for member ‘has_curr_depth’ in ‘octree_param’, which is of non-class type ‘const int’
CHECK(octree_param.has_curr_depth())
^
src/caffe/layers/octree_property_layer.cpp:17:30: error: request for member ‘curr_depth’ in ‘octree_param’, which is of non-class type ‘const int’
curr_depth_ = octree_param.curr_depth();
^
src/caffe/layers/octree_property_layer.cpp:18:34: error: request for member ‘signal_channel’ in ‘octree_param’, which is of non-class type ‘const int’
signal_channel_ = octree_param.signal_channel();
^
src/caffe/layers/octree_property_layer.cpp:21:20: error: request for member ‘has_content_flag’ in ‘octree_param’, which is of non-class type ‘const int’
if (octree_param.has_content_flag()) {
^
src/caffe/layers/octree_property_layer.cpp:22:55: error: request for member ‘content_flag’ in ‘octree_param’, which is of non-class type ‘const int’
content_flag_ = octree::content_flag(octree_param.content_flag());
^
src/caffe/layers/octree_property_layer.cpp: In member function ‘virtual void caffe::OctreePropertyLayer<Dtype>::Reshape(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’:
src/caffe/layers/octree_property_layer.cpp:42:26: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
vector<int> top_shape{ 1, signal_channel_, 8, 1 };
^
src/caffe/layers/octree_property_layer.cpp:69:33: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
top[i]->Reshape(vector<int> {1, channel, height, 1});
^
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/octree_property_layer.hpp:6,
from src/caffe/layers/octree_property_layer.cpp:1:
src/caffe/layers/octree_property_layer.cpp: In member function ‘virtual void caffe::OctreePropertyLayer<Dtype>::Forward_cpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’:
src/caffe/layers/octree_property_layer.cpp:78:18: error: ‘nullptr’ was not declared in this scope
CHECK(ptr != nullptr) << "The octree property does not exist: " << ptypes_[i];
^
src/caffe/layers/octree_property_layer.cpp: In instantiation of ‘void caffe::OctreePropertyLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = float]’:
src/caffe/layers/octree_property_layer.cpp:107:1: required from here
src/caffe/layers/octree_property_layer.cpp:13:62: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
const auto& octree_param = this->layer_param_.octree_param();
^
src/caffe/layers/octree_property_layer.cpp: In instantiation of ‘void caffe::OctreePropertyLayer<Dtype>::Reshape(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = float]’:
src/caffe/layers/octree_property_layer.cpp:107:1: required from here
src/caffe/layers/octree_property_layer.cpp:42:53: error: in C++98 ‘top_shape’ must be initialized by constructor, not by ‘{...}’
vector<int> top_shape{ 1, signal_channel_, 8, 1 };
^
src/caffe/layers/octree_property_layer.cpp:42:53: error: no matching function for call to ‘std::vector<int>::vector(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/octree_property_layer.hpp:4,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/layers/octree_property_layer.cpp:42:53: note: cannot convert ‘8’ (type ‘int’) to type ‘const allocator_type& {aka const std::allocator<int>&}’
vector<int> top_shape{ 1, signal_channel_, 8, 1 };
^
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/octree_property_layer.hpp:4,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 4 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 4 provided
src/caffe/layers/octree_property_layer.cpp:69:5: error: no matching function for call to ‘std::vector<int>::vector(<brace-enclosed initializer list>)’
top[i]->Reshape(vector<int> {1, channel, height, 1});
^
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/octree_property_layer.hpp:4,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/layers/octree_property_layer.cpp:69:5: note: cannot convert ‘height’ (type ‘int’) to type ‘const allocator_type& {aka const std::allocator<int>&}’
top[i]->Reshape(vector<int> {1, channel, height, 1});
^
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/octree_property_layer.hpp:4,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 4 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 4 provided
src/caffe/layers/octree_property_layer.cpp: In instantiation of ‘void caffe::OctreePropertyLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]’:
src/caffe/layers/octree_property_layer.cpp:107:1: required from here
src/caffe/layers/octree_property_layer.cpp:13:62: error: ‘class caffe::LayerParameter’ has no member named ‘octree_param’
const auto& octree_param = this->layer_param_.octree_param();
^
src/caffe/layers/octree_property_layer.cpp: In instantiation of ‘void caffe::OctreePropertyLayer<Dtype>::Reshape(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]’:
src/caffe/layers/octree_property_layer.cpp:107:1: required from here
src/caffe/layers/octree_property_layer.cpp:42:53: error: in C++98 ‘top_shape’ must be initialized by constructor, not by ‘{...}’
vector<int> top_shape{ 1, signal_channel_, 8, 1 };
^
src/caffe/layers/octree_property_layer.cpp:42:53: error: no matching function for call to ‘std::vector<int>::vector(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/octree_property_layer.hpp:4,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/layers/octree_property_layer.cpp:42:53: note: cannot convert ‘8’ (type ‘int’) to type ‘const allocator_type& {aka const std::allocator<int>&}’
vector<int> top_shape{ 1, signal_channel_, 8, 1 };
^
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/octree_property_layer.hpp:4,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 4 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 4 provided
src/caffe/layers/octree_property_layer.cpp:69:5: error: no matching function for call to ‘std::vector<int>::vector(<brace-enclosed initializer list>)’
top[i]->Reshape(vector<int> {1, channel, height, 1});
^
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/octree_property_layer.hpp:4,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/layers/octree_property_layer.cpp:69:5: note: cannot convert ‘height’ (type ‘int’) to type ‘const allocator_type& {aka const std::allocator<int>&}’
top[i]->Reshape(vector<int> {1, channel, height, 1});
^
In file included from /usr/include/c++/5/vector:64:0,
from ./include/caffe/layers/octree_property_layer.hpp:4,
from src/caffe/layers/octree_property_layer.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 4 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 4 provided
Makefile:581: recipe for target '.~/Project/caffe/build_release/src/caffe/layers/octree_property_layer.o' failed
make: *** [.~/Project/caffe/build_release/src/caffe/layers/octree_property_layer.o] Error 1
In file included from /usr/include/c++/5/unordered_map:35:0,
from src/caffe/util/octree.cpp:2:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from ./include/caffe/util/octree.hpp:8:0,
from src/caffe/util/octree.cpp:4:
./include/caffe/util/octree_parser.hpp:22:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
src/caffe/util/octree.cpp:265:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for
^
In file included from ./include/caffe/util/octree.hpp:8:0,
from src/caffe/util/octree.cpp:4:
./include/caffe/util/octree_parser.hpp:25:56: error: ‘nullptr’ was not declared in this scope
void set_gpu(const void* ptr, const void* oct_info = nullptr);
^
./include/caffe/util/octree_parser.hpp:26:49: error: ‘nullptr’ was not declared in this scope
void set_cpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp:27:49: error: ‘nullptr’ was not declared in this scope
void set_gpu(void* ptr, OctreeInfo* octinfo = nullptr);
^
./include/caffe/util/octree_parser.hpp: In constructor ‘caffe::OctreeParser::OctreeParser()’:
./include/caffe/util/octree_parser.hpp:22:32: error: ‘nullptr’ was not declared in this scope
OctreeParser() : h_metadata_(nullptr), d_metadata_(nullptr),
^
./include/caffe/util/octree_parser.hpp: In member function ‘bool caffe::OctreeParser::is_empty() const’:
./include/caffe/util/octree_parser.hpp:33:43: error: ‘nullptr’ was not declared in this scope
bool is_empty() const { return info_ == nullptr; }
^
In file included from src/caffe/util/octree.cpp:4:0:
./include/caffe/util/octree.hpp: At global scope:
./include/caffe/util/octree.hpp:11:12: error: ‘std::unordered_map’ has not been declared
using std::unordered_map;
^
./include/caffe/util/octree.hpp:49:3: error: ‘unordered_map’ does not name a type
unordered_map<string, int> ni_map_;
^
src/caffe/util/octree.cpp: In static member function ‘static boost::shared_ptr<caffe::Blob<float> > caffe::Octree::get_workspace(float, int)’:
src/caffe/util/octree.cpp:19:20: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
vector<int> shape{ 1 };
^
src/caffe/util/octree.cpp:19:24: error: in C++98 ‘shape’ must be initialized by constructor, not by ‘{...}’
vector<int> shape{ 1 };
^
src/caffe/util/octree.cpp:20:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto& workspace = Get().workspace_;
^
src/caffe/util/octree.cpp:20:9: error: ISO C++ forbids declaration of ‘workspace’ with no type [-fpermissive]
auto& workspace = Get().workspace_;
^
src/caffe/util/octree.cpp:20:27: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::vector<boost::shared_ptr<caffe::Blob<float> > >’
auto& workspace = Get().workspace_;
^
src/caffe/util/octree.cpp:21:26: error: request for member ‘size’ in ‘workspace’, which is of non-class type ‘int’
if (id + 1 > workspace.size()) workspace.resize(id + 1, nullptr);
^
src/caffe/util/octree.cpp:21:44: error: request for member ‘resize’ in ‘workspace’, which is of non-class type ‘int’
if (id + 1 > workspace.size()) workspace.resize(id + 1, nullptr);
^
src/caffe/util/octree.cpp:21:59: error: ‘nullptr’ was not declared in this scope
if (id + 1 > workspace.size()) workspace.resize(id + 1, nullptr);
^
src/caffe/util/octree.cpp:22:20: error: invalid types ‘int[int]’ for array subscript
if (!workspace[id].get()) workspace[id].reset(new Blob<float>(shape));
^
src/caffe/util/octree.cpp:22:41: error: invalid types ‘int[int]’ for array subscript
if (!workspace[id].get()) workspace[id].reset(new Blob<float>(shape));
^
src/caffe/util/octree.cpp:23:22: error: invalid types ‘int[int]’ for array subscript
return workspace[id];
^
src/caffe/util/octree.cpp: In static member function ‘static boost::shared_ptr<caffe::Blob<double> > caffe::Octree::get_workspace(double, int)’:
src/caffe/util/octree.cpp:27:20: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
vector<int> shape{ 1 };
^
src/caffe/util/octree.cpp:27:24: error: in C++98 ‘shape’ must be initialized by constructor, not by ‘{...}’
vector<int> shape{ 1 };
^
src/caffe/util/octree.cpp:28:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto& workspaced = Get().workspaced_;
^
src/caffe/util/octree.cpp:28:9: error: ISO C++ forbids declaration of ‘workspaced’ with no type [-fpermissive]
auto& workspaced = Get().workspaced_;
^
src/caffe/util/octree.cpp:28:28: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::vector<boost::shared_ptr<caffe::Blob<double> > >’
auto& workspaced = Get().workspaced_;
^
src/caffe/util/octree.cpp:29:27: error: request for member ‘size’ in ‘workspaced’, which is of non-class type ‘int’
if (id + 1 > workspaced.size()) workspaced.resize(id + 1, nullptr);
^
src/caffe/util/octree.cpp:29:46: error: request for member ‘resize’ in ‘workspaced’, which is of non-class type ‘int’
if (id + 1 > workspaced.size()) workspaced.resize(id + 1, nullptr);
^
src/caffe/util/octree.cpp:29:61: error: ‘nullptr’ was not declared in this scope
if (id + 1 > workspaced.size()) workspaced.resize(id + 1, nullptr);
^
src/caffe/util/octree.cpp:30:21: error: invalid types ‘int[int]’ for array subscript
if (!workspaced[id].get()) workspaced[id].reset(new Blob<double>(shape));
^
src/caffe/util/octree.cpp:30:43: error: invalid types ‘int[int]’ for array subscript
if (!workspaced[id].get()) workspaced[id].reset(new Blob<double>(shape));
^
src/caffe/util/octree.cpp:31:23: error: invalid types ‘int[int]’ for array subscript
return workspaced[id];
^
src/caffe/util/octree.cpp: In member function ‘void caffe::Octree::init_neigh_index()’:
src/caffe/util/octree.cpp:35:52: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
const vector<std::pair<string, int> > kernel_type{
^
src/caffe/util/octree.cpp:38:46: error: in C++98 ‘kernel_type’ must be initialized by constructor, not by ‘{...}’
{ "331", 6 }, { "313", 7 }, { "133", 8 } };
^
src/caffe/util/octree.cpp: In substitution of ‘template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = <missing>]’:
src/caffe/util/octree.cpp:38:46: required from here
src/caffe/util/octree.cpp:38:46: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
src/caffe/util/octree.cpp:38:46: error: no matching function for call to ‘std::vector<std::pair<std::__cxx11::basic_string<char>, int> >::vector(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/boost/thread/pthread/thread_data.hpp:24,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from src/caffe/util/octree.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/util/octree.cpp:38:46: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
{ "331", 6 }, { "313", 7 }, { "133", 8 } };
^
src/caffe/util/octree.cpp:38:46: note: cannot convert ‘{"222", 2}’ (type ‘<brace-enclosed initializer list>’) to type ‘const allocator_type& {aka const std::allocator<std::pair<std::__cxx11::basic_string<char>, int> >&}’
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/boost/thread/pthread/thread_data.hpp:24,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from src/caffe/util/octree.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair<std::__cxx11::basic_string<char>, int>; _Alloc = std::allocator<std::pair<std::__cxx11::basic_string<char>, int> >]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 9 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::pair<std::__cxx11::basic_string<char>, int>; _Alloc = std::allocator<std::pair<std::__cxx11::basic_string<char>, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::pair<std::__cxx11::basic_string<char>, int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::pair<std::__cxx11::basic_string<char>, int> >]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 9 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = std::pair<std::__cxx11::basic_string<char>, int>; _Alloc = std::allocator<std::pair<std::__cxx11::basic_string<char>, int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::pair<std::__cxx11::basic_string<char>, int> >]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 9 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = std::pair<std::__cxx11::basic_string<char>, int>; _Alloc = std::allocator<std::pair<std::__cxx11::basic_string<char>, int> >]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 9 provided
src/caffe/util/octree.cpp:40:33: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
const vector<vector<int> > vec{ {} /* 333 */, { 13 } /* 111 */,
^
src/caffe/util/octree.cpp:47:53: error: in C++98 ‘vec’ must be initialized by constructor, not by ‘{...}’
{ 9, 10, 11, 12, 13, 14, 15, 16, 17 } /* 133 */ };
^
src/caffe/util/octree.cpp: In substitution of ‘template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = <missing>]’:
src/caffe/util/octree.cpp:47:53: required from here
src/caffe/util/octree.cpp:47:53: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
src/caffe/util/octree.cpp:47:53: error: no matching function for call to ‘std::vector<std::vector<int> >::vector(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/boost/thread/pthread/thread_data.hpp:24,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from src/caffe/util/octree.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/util/octree.cpp:47:53: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
{ 9, 10, 11, 12, 13, 14, 15, 16, 17 } /* 133 */ };
^
src/caffe/util/octree.cpp:47:53: note: cannot convert ‘{13, 14, 16, 17, 22, 23, 25, 26}’ (type ‘<brace-enclosed initializer list>’) to type ‘const allocator_type& {aka const std::allocator<std::vector<int> >&}’
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/boost/thread/pthread/thread_data.hpp:24,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from src/caffe/util/octree.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 9 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 9 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 9 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 9 provided
src/caffe/util/octree.cpp:50:3: error: ‘ni_map_’ was not declared in this scope
ni_map_.insert(kernel_type.begin(), kernel_type.end());
^
src/caffe/util/octree.cpp:54:42: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
ni_[0].reset(new Blob<int>(vector<int> { 216 }));
^
src/caffe/util/octree.cpp:72:44: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
ni_[k].reset(new Blob<int>(vector<int> { 8 * sz }));
^
src/caffe/util/octree.cpp:72:48: warning: narrowing conversion of ‘(sz * 8)’ from ‘int’ to ‘std::vector<int>::size_type {aka long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
ni_[k].reset(new Blob<int>(vector<int> { 8 * sz }));
^
src/caffe/util/octree.cpp:84:37: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
displacement_.Reshape(vector<int> { 64 });
^
src/caffe/util/octree.cpp:103:31: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
parent_.Reshape(vector<int> { 512 });
^
src/caffe/util/octree.cpp: In static member function ‘static boost::shared_ptr<caffe::Blob<int> > caffe::Octree::get_ni(const std::vector<int>&)’:
src/caffe/util/octree.cpp:115:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto i : kernel_size) key += std::to_string(i);
^
src/caffe/util/octree.cpp:115:13: error: ‘i’ does not name a type
for (auto i : kernel_size) key += std::to_string(i);
^
src/caffe/util/octree.cpp:116:3: error: expected ‘;’ before ‘auto’
auto it = Get().ni_map_.find(key);
^
src/caffe/util/octree.cpp:116:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
src/caffe/util/octree.cpp:116:3: error: decl-specifier invalid in condition
src/caffe/util/octree.cpp:116:8: error: ISO C++ forbids declaration of ‘it’ with no type [-fpermissive]
auto it = Get().ni_map_.find(key);
^
src/caffe/util/octree.cpp:116:19: error: ‘class caffe::Octree’ has no member named ‘ni_map_’
auto it = Get().ni_map_.find(key);
^
In file included from ./include/caffe/common.hpp:6:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/util/octree.hpp:6,
from src/caffe/util/octree.cpp:4:
src/caffe/util/octree.cpp:117:23: error: ‘class caffe::Octree’ has no member named ‘ni_map_’
CHECK(!(it == Get().ni_map_.end())) << "Unsupported kernel_size";
^
src/caffe/util/octree.cpp:117:67: error: expected ‘)’ before ‘;’ token
CHECK(!(it == Get().ni_map_.end())) << "Unsupported kernel_size";
^
src/caffe/util/octree.cpp:119:20: error: ‘it’ was not declared in this scope
return Get().ni_[it->second];
^
src/caffe/util/octree.cpp: In function ‘void caffe::octree::calc_neighbor(int*, const unsigned int*, int, int)’:
src/caffe/util/octree.cpp:335:33: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<std::pair<unsigned, int>> entries(node_num);
^
src/caffe/util/octree.cpp:340:3: error: ‘unordered_map’ is not a member of ‘std’
std::unordered_map<unsigned, int> hash_table(entries.begin(), entries.end());
^
src/caffe/util/octree.cpp:340:22: error: expected primary-expression before ‘unsigned’
std::unordered_map<unsigned, int> hash_table(entries.begin(), entries.end());
^
src/caffe/util/octree.cpp:359:11: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto rst = hash_table.find(*k2);
^
src/caffe/util/octree.cpp:359:16: error: ‘rst’ does not name a type
auto rst = hash_table.find(*k2);
^
src/caffe/util/octree.cpp:361:15: error: ‘rst’ was not declared in this scope
if (rst != hash_table.end()) {
^
src/caffe/util/octree.cpp:361:22: error: ‘hash_table’ was not declared in this scope
if (rst != hash_table.end()) {
^
src/caffe/util/octree.cpp:358:21: warning: unused variable ‘k2’ [-Wunused-variable]
unsigned* k2 = reinterpret_cast<unsigned*>(k1);
^
src/caffe/util/octree.cpp: In function ‘void caffe::octree::merge_octrees(caffe::Blob<Dtype>&, const std::vector<std::vector<char> >&)’:
src/caffe/util/octree.cpp:691:37: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
octree_output.Reshape(vector<int> {sz});
^
src/caffe/util/octree.cpp:701:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto worker = [&](int thread_id, int thread_num) {
^
src/caffe/util/octree.cpp:701:8: error: ‘worker’ does not name a type
auto worker = [&](int thread_id, int thread_num) {
^
src/caffe/util/octree.cpp:775:41: error: ‘worker’ was not declared in this scope
workers[id].reset(new boost::thread(worker, id, thread_num));
^
src/caffe/util/octree.cpp:777:23: error: there are no arguments to ‘worker’ that depend on a template parameter, so a declaration of ‘worker’ must be available [-fpermissive]
worker(0, thread_num); // for the master thread
^
src/caffe/util/octree.cpp:777:23: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
src/caffe/util/octree.cpp: In function ‘int caffe::octree::content_flag(std::__cxx11::string)’:
src/caffe/util/octree.cpp:829:30: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
const vector<string> tokens{
^
src/caffe/util/octree.cpp:831:3: error: in C++98 ‘tokens’ must be initialized by constructor, not by ‘{...}’
};
^
src/caffe/util/octree.cpp:831:3: error: no matching function for call to ‘std::vector<std::__cxx11::basic_string<char> >::vector(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/boost/thread/pthread/thread_data.hpp:24,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from src/caffe/util/octree.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:407:9: note: template argument deduction/substitution failed:
src/caffe/util/octree.cpp:831:3: note: cannot convert ‘"neigh"’ (type ‘const char [6]’) to type ‘const allocator_type& {aka const std::allocator<std::__cxx11::basic_string<char> >&}’
};
^
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/boost/thread/pthread/thread_data.hpp:24,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from src/caffe/util/octree.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 6 provided
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::__cxx11::basic_string<char>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::__cxx11::basic_string<char> >]
vector(size_type __n, const value_type& __value = value_type(),
^
/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 6 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::__cxx11::basic_string<char> >]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 6 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 6 provided
src/caffe/util/octree.cpp: In instantiation of ‘void caffe::octree::merge_octrees(caffe::Blob<Dtype>&, const std::vector<std::vector<char> >&) [with Dtype = float]’:
src/caffe/util/octree.cpp:874:41: required from here
src/caffe/util/octree.cpp:691:3: warning: narrowing conversion of ‘sz’ from ‘int’ to ‘std::vector<int>::size_type {aka long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
octree_output.Reshape(vector<int> {sz});
^
src/caffe/util/octree.cpp:777:9: error: ‘worker’ was not declared in this scope
worker(0, thread_num); // for the master thread
^
src/caffe/util/octree.cpp: In instantiation of ‘void caffe::octree::merge_octrees(caffe::Blob<Dtype>&, const std::vector<std::vector<char> >&) [with Dtype = double]’:
src/caffe/util/octree.cpp:876:41: required from here
src/caffe/util/octree.cpp:691:3: warning: narrowing conversion of ‘sz’ from ‘int’ to ‘std::vector<int>::size_type {aka long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
octree_output.Reshape(vector<int> {sz});
^
src/caffe/util/octree.cpp:777:9: error: ‘worker’ was not declared in this scope
worker(0, thread_num); // for the master thread
^
src/caffe/util/octree.cpp: In instantiation of ‘void caffe::octree::set_octree_parser(caffe::OctreeParser&, const caffe::Blob<Dtype>&) [with Dtype = float]’:
src/caffe/util/octree.cpp:878:33: required from here
src/caffe/util/octree.cpp:810:7: error: call to ‘void caffe::OctreeParser::set_gpu(const void*, const void*)’ uses the default argument for parameter 2, which is not yet defined
octree_parser.set_gpu(ptr_gpu);
^
src/caffe/util/octree.cpp: In instantiation of ‘void caffe::octree::set_octree_parser(caffe::OctreeParser&, const caffe::Blob<Dtype>&) [with Dtype = double]’:
src/caffe/util/octree.cpp:880:34: required from here
src/caffe/util/octree.cpp:810:7: error: call to ‘void caffe::OctreeParser::set_gpu(const void*, const void*)’ uses the default argument for parameter 2, which is not yet defined
Makefile:581: recipe for target '.~/Project/caffe/build_release/src/caffe/util/octree.o' failed
make: *** [.~/Project/caffe/build_release/src/caffe/util/octree.o] Error 1