Not able to compile the DSI studio on Ubuntu 14.04

470 views
Skip to first unread message

po.y...@gmail.com

unread,
Jun 17, 2016, 8:37:31 PM6/17/16
to DSI Studio
Hello,

I am trying to install DSI studio on desktop with Ubuntu 14.04 by following the steps in your website: http://dsi-studio.labsolver.org/dsi-studio-download/compile-dsi-studio-on-windows-mac-linux

In the step of installing Qt, when I entered 'sudo apt-get install qt5-qmake qt5-dev-tools', it give me the error message:
E: Unable to locate package qt5-dev-tools

I assumed that qt5-dev-tool is the qt5 development package, so I followed this link(http://askubuntu.com/questions/508503/whats-the-development-package-for-qt5-in-14-04) to install this package.

I entered 'sudo apt-get install qtdeclarative5-dev' and 'sudo apt-get install qtbase5-dev'.

Then, I jumped to step 3 compile DSI studio and dependencies. There was no error message from step 3 to step 8.

However, in the last step 9) compile step, I got an error message which is also attacked here.




In file included from ../src/image/image.hpp:83:0,
                 from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In static member function ‘static int image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]’:
../src/image/ml/cnn.hpp:257:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
make: *** [main.o] Error 1


Please let me know how to solve this problem.

Best,
Po-Yu Kao
Screenshot from 2016-06-17 17:35:32.png

Fang-Cheng Yeh

unread,
Jun 17, 2016, 11:53:10 PM6/17/16
to dsi-s...@googlegroups.com
You may need to use g++ > 5.0 to compile DSI Studio.

Best regards,
Frank
> --
> You received this message because you are subscribed to the Google Groups
> "DSI Studio" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dsi-studio+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

po.y...@gmail.com

unread,
Jun 20, 2016, 2:41:20 PM6/20/16
to DSI Studio
Dear Dr. Frank,

I use the following command to update my gcc/g++ to 5.3.0 20151204:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5


but I still get C++ error message:

pkao@vader:build$ make
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/tracking/tracking_window.ui -o ui_tracking_window.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/reconstruction/reconstruction_window.ui -o ui_reconstruction_window.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/dicom/dicom_parser.ui -o ui_dicom_parser.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/simulation.ui -o ui_simulation.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/reconstruction/vbcdialog.ui -o ui_vbcdialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/view_image.ui -o ui_view_image.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/manual_alignment.ui -o ui_manual_alignment.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/tracking/vbc_dialog.ui -o ui_vbc_dialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/tracking/tract_report.ui -o ui_tract_report.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/tracking/color_bar_dialog.ui -o ui_color_bar_dialog.h
../src/tracking/color_bar_dialog.ui: Warning: Z-order assignment: '' is not a valid widget.
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/tracking/connectivity_matrix_dialog.ui -o ui_connectivity_matrix_dialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/tracking/atlasdialog.ui -o ui_atlasdialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/dicom/motion_dialog.ui -o ui_motion_dialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/filebrowser.ui -o ui_filebrowser.h
../src/filebrowser.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget1'.
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ../src/individual_connectometry.ui -o ui_individual_connectometry.h
g++ -c -m64 -pipe -fpermissive -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../src -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -I/usr/X11R6/include -I. -I. -I../src -I. -o main.o ../src/main.cpp
In file included from /usr/include/c++/5/random:35:0,
from ../src/image/numerical/numerical.hpp:4,
from ../src/image/segmentation/otsu.hpp:4,
from ../src/image/segmentation/segmentation.hpp:6,
from ../src/image/image.hpp:32,
from ../src/main.cpp:10:
/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 is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/main.cpp:10:
../src/image/numerical/basic_op.hpp: In function ‘void image::change_endian(type&)’:
../src/image/numerical/basic_op.hpp:815:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = *pdata;
^
In file included from ../src/image/segmentation/otsu.hpp:4:0,
from ../src/image/segmentation/segmentation.hpp:6,
from ../src/image/image.hpp:32,
from ../src/main.cpp:10:
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:13:10: error: ‘mt19937’ in namespace ‘std’ does not name a type
std::mt19937 gen;
^
../src/image/numerical/numerical.hpp:14:10: error: ‘normal_distribution’ in namespace ‘std’ does not name a template type
std::normal_distribution<T> dst;
^
../src/image/numerical/numerical.hpp: In constructor ‘image::normal_dist<T>::normal_dist(unsigned int)’:
../src/image/numerical/numerical.hpp:15:40: error: class ‘image::normal_dist<T>’ does not have any field named ‘gen’
normal_dist(unsigned int seed = 0):gen(seed){}
^
../src/image/numerical/numerical.hpp: In member function ‘T image::normal_dist<T>::operator()()’:
../src/image/numerical/numerical.hpp:17:20: error: ‘gen’ was not declared in this scope
return dst(gen);
^
../src/image/numerical/numerical.hpp:17:23: warning: there are no arguments to ‘dst’ that depend on a template parameter, so a declaration of ‘dst’ must be available [-fpermissive]
return dst(gen);
^
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:23:10: error: ‘mt19937’ in namespace ‘std’ does not name a type
std::mt19937 gen;
^
../src/image/numerical/numerical.hpp:24:10: error: ‘uniform_real_distribution’ in namespace ‘std’ does not name a template type
std::uniform_real_distribution<T> dst;
^
../src/image/numerical/numerical.hpp: In constructor ‘image::uniform_dist<T>::uniform_dist(T, T, unsigned int)’:
../src/image/numerical/numerical.hpp:25:68: error: class ‘image::uniform_dist<T>’ does not have any field named ‘gen’
uniform_dist(T min = T(0), T max = T(1),unsigned int seed = 0):gen(seed),dst(min, max){}
^
../src/image/numerical/numerical.hpp:25:78: error: class ‘image::uniform_dist<T>’ does not have any field named ‘dst’
uniform_dist(T min = T(0), T max = T(1),unsigned int seed = 0):gen(seed),dst(min, max){}
^
../src/image/numerical/numerical.hpp: In member function ‘T image::uniform_dist<T>::operator()()’:
../src/image/numerical/numerical.hpp:27:20: error: ‘gen’ was not declared in this scope
return dst(gen);
^
../src/image/numerical/numerical.hpp:27:23: warning: there are no arguments to ‘dst’ that depend on a template parameter, so a declaration of ‘dst’ must be available [-fpermissive]
return dst(gen);
^
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:32:10: error: ‘mt19937’ in namespace ‘std’ does not name a type
std::mt19937 gen;
^
../src/image/numerical/numerical.hpp:33:10: error: ‘uniform_int_distribution’ in namespace ‘std’ does not name a template type
std::uniform_int_distribution<int> dst;
^
../src/image/numerical/numerical.hpp: In constructor ‘image::uniform_dist<int>::uniform_dist(int, int, unsigned int)’:
../src/image/numerical/numerical.hpp:34:58: error: class ‘image::uniform_dist<int>’ does not have any field named ‘gen’
uniform_dist(int min, int max,unsigned int seed = 0):gen(seed),dst(min, max){}
^
../src/image/numerical/numerical.hpp:34:68: error: class ‘image::uniform_dist<int>’ does not have any field named ‘dst’
uniform_dist(int min, int max,unsigned int seed = 0):gen(seed),dst(min, max){}
^
../src/image/numerical/numerical.hpp: In constructor ‘image::uniform_dist<int>::uniform_dist(int, unsigned int)’:
../src/image/numerical/numerical.hpp:35:51: error: class ‘image::uniform_dist<int>’ does not have any field named ‘gen’
uniform_dist(int size, unsigned int seed = 0):gen(seed),dst(0, size-1){}
^
../src/image/numerical/numerical.hpp:35:61: error: class ‘image::uniform_dist<int>’ does not have any field named ‘dst’
uniform_dist(int size, unsigned int seed = 0):gen(seed),dst(0, size-1){}
^
../src/image/numerical/numerical.hpp: In constructor ‘image::uniform_dist<int>::uniform_dist(unsigned int)’:
../src/image/numerical/numerical.hpp:36:41: error: class ‘image::uniform_dist<int>’ does not have any field named ‘gen’
uniform_dist(unsigned int seed = 0):gen(seed),dst(){}
^
../src/image/numerical/numerical.hpp:36:51: error: class ‘image::uniform_dist<int>’ does not have any field named ‘dst’
uniform_dist(unsigned int seed = 0):gen(seed),dst(){}
^
../src/image/numerical/numerical.hpp: In member function ‘int image::uniform_dist<int>::operator()()’:
../src/image/numerical/numerical.hpp:38:20: error: ‘gen’ was not declared in this scope
return dst(gen);
^
../src/image/numerical/numerical.hpp:38:23: error: ‘dst’ was not declared in this scope
return dst(gen);
^
../src/image/numerical/numerical.hpp: In member function ‘int image::uniform_dist<int>::operator()(unsigned int)’:
../src/image/numerical/numerical.hpp:41:9: error: ‘uniform_int_distribution’ is not a member of ‘std’
std::uniform_int_distribution<int> temp_dst(0,size-1);
^
../src/image/numerical/numerical.hpp:41:39: error: expected primary-expression before ‘int’
std::uniform_int_distribution<int> temp_dst(0,size-1);
^
../src/image/numerical/numerical.hpp:42:25: error: ‘gen’ was not declared in this scope
return temp_dst(gen);
^
../src/image/numerical/numerical.hpp:42:28: error: ‘temp_dst’ was not declared in this scope
return temp_dst(gen);
^
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:40:33: warning: unused parameter ‘size’ [-Wunused-parameter]
int operator()(unsigned int size){
^
../src/image/numerical/numerical.hpp: In member function ‘void image::uniform_dist<int>::reset(int)’:
../src/image/numerical/numerical.hpp:46:9: error: ‘gen’ was not declared in this scope
gen.seed(seed);
^
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:52:10: error: ‘mt19937’ in namespace ‘std’ does not name a type
std::mt19937 gen;
^
../src/image/numerical/numerical.hpp:53:10: error: ‘uniform_real_distribution’ in namespace ‘std’ does not name a template type
std::uniform_real_distribution<float> dst;
^
../src/image/numerical/numerical.hpp: In constructor ‘image::bernoulli::bernoulli(float, unsigned int)’:
../src/image/numerical/numerical.hpp:54:53: error: class ‘image::bernoulli’ does not have any field named ‘gen’
bernoulli(float p_,unsigned int seed = 0):p(p_),gen(seed),dst(float(0), float(1)){}
^
../src/image/numerical/numerical.hpp:54:63: error: class ‘image::bernoulli’ does not have any field named ‘dst’
bernoulli(float p_,unsigned int seed = 0):p(p_),gen(seed),dst(float(0), float(1)){}
^
../src/image/numerical/numerical.hpp: In member function ‘bool image::bernoulli::operator()()’:
../src/image/numerical/numerical.hpp:56:20: error: ‘gen’ was not declared in this scope
return dst(gen) <= p;
^
../src/image/numerical/numerical.hpp:56:23: error: ‘dst’ was not declared in this scope
return dst(gen) <= p;
^
../src/image/numerical/numerical.hpp: In function ‘void image::normalize_abs(ImageType&, float)’:
../src/image/numerical/numerical.hpp:744:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto minmax = std::minmax_element(image.begin(),image.end());
^
../src/image/numerical/numerical.hpp:744:10: error: ‘minmax’ does not name a type
auto minmax = std::minmax_element(image.begin(),image.end());
^
../src/image/numerical/numerical.hpp:745:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto scale = std::max(-*minmax.first,*minmax.second);
^
../src/image/numerical/numerical.hpp:745:10: error: ‘scale’ does not name a type
auto scale = std::max(-*minmax.first,*minmax.second);
^
../src/image/numerical/numerical.hpp:746:8: error: ‘scale’ was not declared in this scope
if(scale != 0)
^
In file included from ../src/image/image.hpp:44:0,
from ../src/main.cpp:10:
../src/image/numerical/statistics.hpp: In function ‘typename std::iterator_traits<_Iterator>::value_type image::median(input_iterator, input_iterator)’:
../src/image/numerical/statistics.hpp:136:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto size = std::distance(begin, end);
^
../src/image/numerical/statistics.hpp:136:10: error: ‘size’ does not name a type
auto size = std::distance(begin, end);
^
../src/image/numerical/statistics.hpp:137:5: error: ‘size’ was not declared in this scope
size /= 2;
^
../src/image/numerical/statistics.hpp:139:13: error: ‘next’ is not a member of ‘std’
return *std::next(begin, size);
^
In file included from ../src/image/io/io.hpp:7:0,
from ../src/image/image.hpp:47,
from ../src/main.cpp:10:
../src/image/io/dicom.hpp: In member function ‘bool image::io::dicom::load_from_file(const char_type*)’:
../src/image/io/dicom.hpp:568:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto& item = ge_map[ge.get_order()];
^
../src/image/io/dicom.hpp:568:19: warning: ISO C++ forbids declaration of ‘item’ with no type [-fpermissive]
auto& item = ge_map[ge.get_order()];
^
../src/image/io/dicom.hpp: In member function ‘void image::io::dicom::get_image_dimension(image::geometry<3>&) const’:
../src/image/io/dicom.hpp:831:26: error: ‘stoi’ is not a member of ‘std’
geo[2] = std::stoi(mosaic);
^
In file included from ../src/image/image.hpp:47:0,
from ../src/main.cpp:10:
../src/image/io/io.hpp: In member function ‘void image::io::volume::change_orientation(bool, bool, bool)’:
../src/image/io/io.hpp:45:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(xyz[dim_order[index]])
^
In file included from ../src/image/image.hpp:51:0,
from ../src/main.cpp:10:
../src/image/io/mat.hpp: In constructor ‘image::io::mat_matrix::mat_matrix(const string&)’:
../src/image/io/mat.hpp:92:18: warning: ‘image::io::mat_matrix::namelen’ will be initialized after [-Wreorder]
unsigned int namelen;
^
../src/image/io/mat.hpp:91:17: warning: ‘std::string image::io::mat_matrix::name’ [-Wreorder]
std::string name;
^
../src/image/io/mat.hpp:115:5: warning: when initialized here [-Wreorder]
mat_matrix(const std::string& name_):type(0),rows(0),cols(0),namelen((unsigned int)name_.size()+1)
^
In file included from ../src/image/image.hpp:52:0,
from ../src/main.cpp:10:
../src/image/io/2dseq.hpp: At global scope:
../src/image/io/2dseq.hpp:97:21: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool slice_2d = true;
^
In file included from ../src/image/image.hpp:65:0,
from ../src/main.cpp:10:
../src/image/reg/linear.hpp:121:19: error: ‘shared_ptr’ is not a member of ‘std’
std::list<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/linear.hpp:121:19: error: ‘shared_ptr’ is not a member of ‘std’
../src/image/reg/linear.hpp:121:35: error: ‘future’ is not a member of ‘std’
std::list<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/linear.hpp:121:51: error: template argument 1 is invalid
std::list<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/linear.hpp:121:51: error: template argument 2 is invalid
../src/image/reg/linear.hpp:121:53: error: expected unqualified-id before ‘>’ token
std::list<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/linear.hpp: In constructor ‘image::reg::mt_correlation<image_type, transform_type>::mt_correlation()’:
../src/image/reg/linear.hpp:131:53: error: ‘std::thread’ has not been declared
mt_correlation(void):end(false),status(std::thread::hardware_concurrency()),I1(0)
^
../src/image/reg/linear.hpp:134:17: error: ‘threads’ was not declared in this scope
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/linear.hpp:134:35: error: ‘make_shared’ is not a member of ‘std’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/linear.hpp:134:52: error: ‘future’ is not a member of ‘std’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/linear.hpp:134:64: error: expected primary-expression before ‘void’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/linear.hpp: In destructor ‘image::reg::mt_correlation<image_type, transform_type>::~mt_correlation()’:
../src/image/reg/linear.hpp:140:17: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& i:threads)
^
../src/image/reg/linear.hpp:140:23: warning: ISO C++ forbids declaration of ‘i’ with no type [-fpermissive]
for(auto& i:threads)
^
../src/image/reg/linear.hpp:140:25: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& i:threads)
^
../src/image/reg/linear.hpp:140:25: error: ‘threads’ was not declared in this scope
../src/image/reg/linear.hpp:141:18: error: base operand of ‘->’ is not a pointer
i->wait();
^
In file included from ../src/image/image.hpp:68:0,
from ../src/main.cpp:10:
../src/image/reg/bfnorm.hpp: In function ‘void image::reg::bfnorm(image::reg::bfnorm_mapping<value_type, 3>&, const ImageType&, const ImageType&, unsigned int, terminator_type&, int&)’:
../src/image/reg/bfnorm.hpp:860:21: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/bfnorm.hpp:860:21: error: ‘shared_ptr’ is not a member of ‘std’
../src/image/reg/bfnorm.hpp:860:37: error: ‘future’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/bfnorm.hpp:860:53: error: template argument 1 is invalid
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/bfnorm.hpp:860:53: error: template argument 2 is invalid
../src/image/reg/bfnorm.hpp:860:55: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/bfnorm.hpp:863:13: error: ‘threads’ was not declared in this scope
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:863:31: error: ‘make_shared’ is not a member of ‘std’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:863:48: error: ‘future’ is not a member of ‘std’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:863:60: error: expected primary-expression before ‘void’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:867:27: error: ‘threads’ was not declared in this scope
for(int i = 0;i < threads.size();++i)
^
../src/image/reg/bfnorm.hpp:871:21: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads2;
^
../src/image/reg/bfnorm.hpp:871:21: error: ‘shared_ptr’ is not a member of ‘std’
../src/image/reg/bfnorm.hpp:871:37: error: ‘future’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads2;
^
../src/image/reg/bfnorm.hpp:871:53: error: template argument 1 is invalid
std::vector<std::shared_ptr<std::future<void> > > threads2;
^
../src/image/reg/bfnorm.hpp:871:53: error: template argument 2 is invalid
../src/image/reg/bfnorm.hpp:871:55: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<std::future<void> > > threads2;
^
../src/image/reg/bfnorm.hpp:873:17: error: ‘threads2’ was not declared in this scope
threads2.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:873:36: error: ‘make_shared’ is not a member of ‘std’
threads2.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:873:53: error: ‘future’ is not a member of ‘std’
threads2.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:873:65: error: expected primary-expression before ‘void’
threads2.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:876:27: error: ‘threads2’ was not declared in this scope
for(int i = 0;i < threads2.size();++i)
^
In file included from ../src/image/image.hpp:69:0,
from ../src/main.cpp:10:
../src/image/reg/reg.hpp: At global scope:
../src/image/reg/reg.hpp:22:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<image::reg::bfnorm_mapping<value_type,3> > bnorm_data;
^
../src/image/reg/reg.hpp:53:42: error: ‘std::thread’ has not been declared
int thread_count = std::thread::hardware_concurrency())
^
../src/image/reg/reg.hpp: In member function ‘void image::reg::normalization<value_type>::run_reg(const image_type&, const vector_type&, const image_type&, const vector_type&, int, image::reg::reg_cost_type, image::reg::reg_type, terminate_type&, int)’:
../src/image/reg/reg.hpp:60:9: error: ‘bnorm_data’ was not declared in this scope
bnorm_data.reset(new image::reg::bfnorm_mapping<value_type,3>(to.geometry(),
^
../src/image/reg/reg.hpp: In member function ‘void image::reg::normalization<value_type>::operator()(const vtype&, vtype2&)’:
../src/image/reg/reg.hpp:102:15: error: ‘bnorm_data’ was not declared in this scope
(*bnorm_data.get())(image::vector<3,int>(pos[0],pos[1],pos[2]),out);
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp: At global scope:
../src/image/utility/multi_thread.hpp:6:54: error: ‘std::thread’ has not been declared
void par_for(T size, Func f, int thread_count = std::thread::hardware_concurrency())
^
../src/image/utility/multi_thread.hpp: In function ‘void image::par_for(T, Func, int)’:
../src/image/utility/multi_thread.hpp:8:17: error: ‘future’ is not a member of ‘std’
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:8:17: error: ‘future’ is not a member of ‘std’
../src/image/utility/multi_thread.hpp:8:33: error: template argument 1 is invalid
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:8:33: error: template argument 2 is invalid
../src/image/utility/multi_thread.hpp:8:35: error: expected unqualified-id before ‘>’ token
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:11:9: error: ‘futures’ was not declared in this scope
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:11:27: error: ‘move’ is not a member of ‘std’
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:11:27: note: suggested alternative:
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/main.cpp:10:
../src/image/numerical/basic_op.hpp:233:6: note: ‘image::move’
void move(basic_image<PixelType,3>& src,PosType pos)
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:11:37: error: ‘async’ is not a member of ‘std’
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:11:53: error: ‘std::launch’ has not been declared
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:15:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
})));
^
../src/image/utility/multi_thread.hpp:19:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:19:15: warning: ISO C++ forbids declaration of ‘future’ with no type [-fpermissive]
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:19:24: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:19:24: error: ‘futures’ was not declared in this scope
../src/image/utility/multi_thread.hpp:20:16: error: request for member ‘wait’ in ‘future’, which is of non-class type ‘int’
future.wait();
^
../src/image/utility/multi_thread.hpp: At global scope:
../src/image/utility/multi_thread.hpp:24:55: error: ‘std::thread’ has not been declared
void par_for2(T size, Func f, int thread_count = std::thread::hardware_concurrency())
^
../src/image/utility/multi_thread.hpp: In function ‘void image::par_for2(T, Func, int)’:
../src/image/utility/multi_thread.hpp:26:17: error: ‘future’ is not a member of ‘std’
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:26:17: error: ‘future’ is not a member of ‘std’
../src/image/utility/multi_thread.hpp:26:33: error: template argument 1 is invalid
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:26:33: error: template argument 2 is invalid
../src/image/utility/multi_thread.hpp:26:35: error: expected unqualified-id before ‘>’ token
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:29:9: error: ‘futures’ was not declared in this scope
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:29:27: error: ‘move’ is not a member of ‘std’
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:29:27: note: suggested alternative:
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/main.cpp:10:
../src/image/numerical/basic_op.hpp:233:6: note: ‘image::move’
void move(basic_image<PixelType,3>& src,PosType pos)
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:29:37: error: ‘async’ is not a member of ‘std’
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:29:53: error: ‘std::launch’ has not been declared
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:33:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
})));
^
../src/image/utility/multi_thread.hpp:37:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:37:15: warning: ISO C++ forbids declaration of ‘future’ with no type [-fpermissive]
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:37:24: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:37:24: error: ‘futures’ was not declared in this scope
../src/image/utility/multi_thread.hpp:38:16: error: request for member ‘wait’ in ‘future’, which is of non-class type ‘int’
future.wait();
^
../src/image/utility/multi_thread.hpp: At global scope:
../src/image/utility/multi_thread.hpp:44:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<std::future<void> > th;
^
../src/image/utility/multi_thread.hpp:61:25: error: expected ‘,’ or ‘...’ before ‘&&’ token
void run(lambda_type&& fun)
^
../src/image/utility/multi_thread.hpp: In member function ‘void image::thread::clear()’:
../src/image/utility/multi_thread.hpp:53:12: error: ‘th’ was not declared in this scope
if(th.get())
^
../src/image/utility/multi_thread.hpp: In member function ‘void image::thread::run(lambda_type)’:
../src/image/utility/multi_thread.hpp:66:9: error: ‘th’ was not declared in this scope
th.reset(new std::future<void>(std::async(std::launch::async,fun)));
^
../src/image/utility/multi_thread.hpp:66:27: error: ‘future’ in namespace ‘std’ does not name a template type
th.reset(new std::future<void>(std::async(std::launch::async,fun)));
^
../src/image/utility/multi_thread.hpp:66:34: error: expected primary-expression before ‘void’
th.reset(new std::future<void>(std::async(std::launch::async,fun)));
^
../src/image/utility/multi_thread.hpp: In member function ‘void image::thread::wait()’:
../src/image/utility/multi_thread.hpp:70:9: error: ‘th’ was not declared in this scope
th->wait();
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:95:39: error: ‘activation_type’ is not a class or namespace
basic_layer(activation_type af_ = activation_type::tanh):af(af_),weight_base(1){}
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::initialize_weight(image::uniform_dist<float>&)’:
../src/image/ml/cnn.hpp:105:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < weight.size(); ++i)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::forward_af(float*)’:
../src/image/ml/cnn.hpp:122:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::tanh)
^
../src/image/ml/cnn.hpp:125:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::sigmoid)
^
../src/image/ml/cnn.hpp:128:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::relu)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:136:46: warning: unused parameter ‘dE_da’ [-Wunused-parameter]
virtual void calculate_dwdb(const float* dE_da,
^
../src/image/ml/cnn.hpp:137:48: warning: unused parameter ‘prev_out’ [-Wunused-parameter]
const float* prev_out,
^
../src/image/ml/cnn.hpp:138:55: warning: unused parameter ‘dweight’ [-Wunused-parameter]
std::vector<float>& dweight,
^
../src/image/ml/cnn.hpp:139:55: warning: unused parameter ‘dbias’ [-Wunused-parameter]
std::vector<float>& dbias){}
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::back_af(float*, const float*)’:
../src/image/ml/cnn.hpp:145:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::tanh)
^
../src/image/ml/cnn.hpp:148:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::sigmoid)
^
../src/image/ml/cnn.hpp:151:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::relu)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:169:82: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim_,const image::geometry<3>& out_dim) override
^
../src/image/ml/cnn.hpp:175:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:183:50: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
std::vector<float>& dbias) override
^
../src/image/ml/cnn.hpp:221:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float*) override
^
../src/image/ml/cnn.hpp:270:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:285:50: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
std::vector<float>& dbias) override
^
../src/image/ml/cnn.hpp:308:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float*) override
^
../src/image/ml/cnn.hpp: In static member function ‘static int image::ml::partial_connected_layer::max_size(const Container&)’:
../src/image/ml/cnn.hpp:256:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
})->size();
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:277:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < o2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::calculate_dwdb(const float*, const float*, std::vector<float, std::allocator<float> >&, std::vector<float, std::allocator<float> >&)’:
../src/image/ml/cnn.hpp:287:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < w2o_1.size(); i++)
^
../src/image/ml/cnn.hpp:292:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < w2o_1i.size();++j)
^
../src/image/ml/cnn.hpp:297:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < b2o.size(); i++)
^
../src/image/ml/cnn.hpp:301:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < outs.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:315:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < i2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:329:81: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim,const image::geometry<3>& out_dim) override
^
../src/image/ml/cnn.hpp:386:83: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim_,const image::geometry<3>& out_dim_) override
^
../src/image/ml/cnn.hpp:396:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:411:48: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float* prev_out) override
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:398:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp:400:31: error: ‘lowest’ is not a member of ‘std::numeric_limits<float>’
float max_value = std::numeric_limits<float>::lowest();
^
../src/image/ml/cnn.hpp:401:17: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto j : o2i[i])
^
../src/image/ml/cnn.hpp:401:22: error: ‘j’ does not name a type
for(auto j : o2i[i])
^
../src/image/ml/cnn.hpp:406:13: error: expected ‘;’ before ‘out’
out[i] = max_value;
^
../src/image/ml/cnn.hpp:406:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
out[i] = max_value;
^
../src/image/ml/cnn.hpp:407:9: error: expected primary-expression before ‘}’ token
}
^
../src/image/ml/cnn.hpp:407:9: error: expected ‘)’ before ‘}’ token
../src/image/ml/cnn.hpp:407:9: error: expected primary-expression before ‘}’ token
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:396:43: warning: unused parameter ‘data’ [-Wunused-parameter]
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:415:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp:417:31: error: ‘lowest’ is not a member of ‘std::numeric_limits<float>’
float max_value = std::numeric_limits<float>::lowest();
^
../src/image/ml/cnn.hpp:418:17: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto j : o2i[i])
^
../src/image/ml/cnn.hpp:418:22: error: ‘j’ does not name a type
for(auto j : o2i[i])
^
../src/image/ml/cnn.hpp:426:9: error: expected ‘;’ before ‘}’ token
}
^
../src/image/ml/cnn.hpp:426:9: error: expected primary-expression before ‘}’ token
../src/image/ml/cnn.hpp:426:9: error: expected ‘;’ before ‘}’ token
../src/image/ml/cnn.hpp:426:9: error: expected primary-expression before ‘}’ token
../src/image/ml/cnn.hpp:426:9: error: expected ‘)’ before ‘}’ token
../src/image/ml/cnn.hpp:426:9: error: expected primary-expression before ‘}’ token
../src/image/ml/cnn.hpp:417:19: warning: unused variable ‘max_value’ [-Wunused-variable]
float max_value = std::numeric_limits<float>::lowest();
^
../src/image/ml/cnn.hpp:427:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < i2o.size(); i++)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:411:40: warning: unused parameter ‘prev_out’ [-Wunused-parameter]
const float* prev_out) override
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::connection_table::connection_table(int, int)’:
../src/image/ml/cnn.hpp:475:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int y = 0;y < c.height();++y)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:506:83: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim_,const image::geometry<3>& out_dim_) override
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp:532:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:562:50: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
std::vector<float>& dbias) override
^
../src/image/ml/cnn.hpp:594:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float*) override
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In constructor ‘image::ml::convolutional_layer::convolutional_layer(image::ml::activation_type, int, const image::ml::connection_table&)’:
../src/image/ml/cnn.hpp:498:9: warning: ‘image::ml::convolutional_layer::kernel_size’ will be initialized after [-Wreorder]
int kernel_size;
^
../src/image/ml/cnn.hpp:495:22: warning: ‘image::ml::connection_table image::ml::convolutional_layer::connection’ [-Wreorder]
connection_table connection;
^
../src/image/ml/cnn.hpp:500:5: warning: when initialized here [-Wreorder]
convolutional_layer(activation_type af_,int kernel_size_,const connection_table& connection_ = con
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:676:81: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim,const image::geometry<3>& out_dim) override
^
../src/image/ml/cnn.hpp:682:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:692:48: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float* prev_out) override
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::soft_max_layer::soft_max_layer()’:
../src/image/ml/cnn.hpp:673:23: error: ‘activation_type’ is not a class or namespace
: basic_layer(activation_type::identity)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:760:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<basic_layer> > layers;
^
../src/image/ml/cnn.hpp:760:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/image/ml/cnn.hpp:760:44: error: template argument 1 is invalid
std::vector<std::shared_ptr<basic_layer> > layers;
^
../src/image/ml/cnn.hpp:760:44: error: template argument 2 is invalid
../src/image/ml/cnn.hpp:760:46: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<basic_layer> > layers;
^
../src/image/ml/cnn.hpp:768:35: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned int training_count = 0;
^
../src/image/ml/cnn.hpp:769:41: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned int training_error_count = 0;
^
../src/image/ml/cnn.hpp:770:32: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned int output_size = 0;
^
../src/image/ml/cnn.hpp:1241:50: error: ‘>>’ should be ‘> >’ within a nested template argument list
void test(const std::vector<std::vector<float>>& data,
^
../src/image/ml/cnn.hpp:1251:50: error: ‘>>’ should be ‘> >’ within a nested template argument list
void test(const std::vector<std::vector<float>>& data,
^
../src/image/ml/cnn.hpp:1212:40: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
iter_type iter_fun = []{},float learning_rate = 0.0001)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::reset()’:
../src/image/ml/cnn.hpp:775:9: error: ‘layers’ was not declared in this scope
layers.clear();
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::add(image::ml::basic_layer*)’:
../src/image/ml/cnn.hpp:783:9: error: ‘layers’ was not declared in this scope
layers.push_back(std::shared_ptr<basic_layer>(new_layer));
^
../src/image/ml/cnn.hpp:783:26: error: ‘shared_ptr’ is not a member of ‘std’
layers.push_back(std::shared_ptr<basic_layer>(new_layer));
^
../src/image/ml/cnn.hpp:783:53: error: expected primary-expression before ‘>’ token
layers.push_back(std::shared_ptr<basic_layer>(new_layer));
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::add(const image::geometry<3>&)’:
../src/image/ml/cnn.hpp:787:13: error: ‘layers’ was not declared in this scope
if(!layers.empty())
^
../src/image/ml/cnn.hpp: In member function ‘unsigned int image::ml::network::computation_cost() const’:
../src/image/ml/cnn.hpp:796:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:796:19: warning: ISO C++ forbids declaration of ‘layer’ with no type [-fpermissive]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:796:27: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:796:27: error: ‘layers’ was not declared in this scope
../src/image/ml/cnn.hpp:797:26: error: base operand of ‘->’ is not a pointer
cost += layer->computation_cost();
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::get_min_max(std::vector<float, std::allocator<float> >&, std::vector<float, std::allocator<float> >&, std::vector<float, std::allocator<float> >&, std::vector<float, std::allocator<float> >&)’:
../src/image/ml/cnn.hpp:805:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:805:19: warning: ISO C++ forbids declaration of ‘layer’ with no type [-fpermissive]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:805:27: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:805:27: error: ‘layers’ was not declared in this scope
../src/image/ml/cnn.hpp:806:18: error: base operand of ‘->’ is not a pointer
if(!layer->weight.empty())
^
../src/image/ml/cnn.hpp:808:51: error: base operand of ‘->’ is not a pointer
wmin.push_back(*std::min_element(layer->weight.begin(),layer->weight.end()));
^
../src/image/ml/cnn.hpp:808:73: error: base operand of ‘->’ is not a pointer
wmin.push_back(*std::min_element(layer->weight.begin(),layer->weight.end()));
^
../src/image/ml/cnn.hpp:809:51: error: base operand of ‘->’ is not a pointer
wmax.push_back(*std::max_element(layer->weight.begin(),layer->weight.end()));
^
../src/image/ml/cnn.hpp:809:73: error: base operand of ‘->’ is not a pointer
wmax.push_back(*std::max_element(layer->weight.begin(),layer->weight.end()));
^
../src/image/ml/cnn.hpp:810:51: error: base operand of ‘->’ is not a pointer
bmin.push_back(*std::min_element(layer->bias.begin(),layer->bias.end()));
^
../src/image/ml/cnn.hpp:810:71: error: base operand of ‘->’ is not a pointer
bmin.push_back(*std::min_element(layer->bias.begin(),layer->bias.end()));
^
../src/image/ml/cnn.hpp:811:51: error: base operand of ‘->’ is not a pointer
bmax.push_back(*std::max_element(layer->bias.begin(),layer->bias.end()));
^
../src/image/ml/cnn.hpp:811:71: error: base operand of ‘->’ is not a pointer
bmax.push_back(*std::max_element(layer->bias.begin(),layer->bias.end()));
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::to_image(image::color_image&, std::vector<float, std::allocator<float> >, int, int)’:
../src/image/ml/cnn.hpp:824:44: error: ‘layers’ was not declared in this scope
std::vector<image::color_image> Is(layers.size());
^
../src/image/ml/cnn.hpp:835:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(I2.width() > max_width)
^
../src/image/ml/cnn.hpp:842:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < I2.size();++j)
^
../src/image/ml/cnn.hpp:864:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:873:25: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto v = image::make_image((i == 0 ? in_buf : out_buf)+geo[i].plane_size()*j,i
^
../src/image/ml/cnn.hpp:873:30: error: ‘v’ does not name a type
auto v = image::make_image((i == 0 ? in_buf : out_buf)+geo[i].plane_size()*j,i
^
../src/image/ml/cnn.hpp:874:46: error: ‘v’ was not declared in this scope
image::normalize_abs(v);
^
../src/image/ml/cnn.hpp:876:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < Iv.size();++j)
^
../src/image/ml/cnn.hpp:894:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:910:87: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
image::draw(Is[i],I,image::geometry<2>(1,cur_height + (Is[i].height() < layer_height ?
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::add(const std::vector<std::basic_string<char> >&)’:
../src/image/ml/cnn.hpp:917:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& str: list)
^
../src/image/ml/cnn.hpp:917:19: warning: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
for(auto& str: list)
^
../src/image/ml/cnn.hpp:917:24: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& str: list)
^
../src/image/ml/cnn.hpp:918:20: warning: invalid conversion from ‘int’ to ‘image::ml::basic_layer*’ [-fpermissive]
add(str);
^
../src/image/ml/cnn.hpp:781:10: note: initializing argument 1 of ‘void image::ml::network::add(image::ml::basic_layer*)’
void add(basic_layer* new_layer)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::add(const string&)’:
../src/image/ml/cnn.hpp:924:13: error: ‘regex’ is not a member of ‘std’
std::regex reg("[|]");
^
../src/image/ml/cnn.hpp:925:13: error: ‘sregex_token_iterator’ is not a member of ‘std’
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:925:79: error: expected primary-expression before ‘,’ token
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:925:80: error: ‘last’ was not declared in this scope
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:926:46: error: ‘first’ was not declared in this scope
std::vector<std::string> list = {first, last};
^
../src/image/ml/cnn.hpp:926:57: error: in C++98 ‘list’ must be initialized by constructor, not by ‘{...}’
std::vector<std::string> list = {first, last};
^
../src/image/ml/cnn.hpp:926:57: error: could not convert ‘{<expression error>, last}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::basic_string<char> >’
../src/image/ml/cnn.hpp:934:9: error: ‘regex’ is not a member of ‘std’
std::regex reg(",");
^
../src/image/ml/cnn.hpp:935:9: error: ‘sregex_token_iterator’ is not a member of ‘std’
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:935:75: error: expected primary-expression before ‘,’ token
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:935:76: error: ‘last’ was not declared in this scope
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:936:42: error: ‘first’ was not declared in this scope
std::vector<std::string> list = {first, last};
^
../src/image/ml/cnn.hpp:936:53: error: in C++98 ‘list’ must be initialized by constructor, not by ‘{...}’
std::vector<std::string> list = {first, last};
^
../src/image/ml/cnn.hpp:936:53: error: could not convert ‘{<expression error>, last}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::basic_string<char> >’
../src/image/ml/cnn.hpp:939:13: error: ‘regex’ is not a member of ‘std’
std::regex integer("(\\+|-)?[[:digit:]]+");
^
../src/image/ml/cnn.hpp:941:16: error: ‘regex_match’ is not a member of ‘std’
std::regex_match(list[0],integer) &&
^
../src/image/ml/cnn.hpp:941:41: error: ‘integer’ was not declared in this scope
std::regex_match(list[0],integer) &&
^
../src/image/ml/cnn.hpp:942:16: error: ‘regex_match’ is not a member of ‘std’
std::regex_match(list[1],integer) &&
^
../src/image/ml/cnn.hpp:943:16: error: ‘regex_match’ is not a member of ‘std’
std::regex_match(list[2],integer))
^
../src/image/ml/cnn.hpp:965:18: error: ‘activation_type’ is not a class or namespace
af = activation_type::tanh;
^
../src/image/ml/cnn.hpp:968:22: error: ‘activation_type’ is not a class or namespace
af = activation_type::sigmoid;
^
../src/image/ml/cnn.hpp:971:26: error: ‘activation_type’ is not a class or namespace
af = activation_type::relu;
^
../src/image/ml/cnn.hpp:974:30: error: ‘activation_type’ is not a class or namespace
af = activation_type::identity;
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::save_to_file(const char*)’:
../src/image/ml/cnn.hpp:1008:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:1013:20: error: ‘layers’ was not declared in this scope
if(i < layers.size())
^
../src/image/ml/cnn.hpp:1017:37: error: ‘activation_type’ is not a class or namespace
if(layers[i]->af == activation_type::tanh)
^
../src/image/ml/cnn.hpp:1019:37: error: ‘activation_type’ is not a class or namespace
if(layers[i]->af == activation_type::sigmoid)
^
../src/image/ml/cnn.hpp:1021:37: error: ‘activation_type’ is not a class or namespace
if(layers[i]->af == activation_type::relu)
^
../src/image/ml/cnn.hpp:1023:37: error: ‘activation_type’ is not a class or namespace
if(layers[i]->af == activation_type::identity)
^
../src/image/ml/cnn.hpp:1043:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1043:19: warning: ISO C++ forbids declaration of ‘layer’ with no type [-fpermissive]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1043:27: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1043:27: error: ‘layers’ was not declared in this scope
../src/image/ml/cnn.hpp:1044:22: error: base operand of ‘->’ is not a pointer
if(!layer->weight.empty())
^
../src/image/ml/cnn.hpp:1046:48: error: base operand of ‘->’ is not a pointer
file.write((const char*)&*layer->weight.begin(),layer->weight.size()*4);
^
../src/image/ml/cnn.hpp:1046:70: error: base operand of ‘->’ is not a pointer
file.write((const char*)&*layer->weight.begin(),layer->weight.size()*4);
^
../src/image/ml/cnn.hpp:1047:48: error: base operand of ‘->’ is not a pointer
file.write((const char*)&*layer->bias.begin(),layer->bias.size()*4);
^
../src/image/ml/cnn.hpp:1047:68: error: base operand of ‘->’ is not a pointer
file.write((const char*)&*layer->bias.begin(),layer->bias.size()*4);
^
../src/image/ml/cnn.hpp: In member function ‘bool image::ml::network::load_from_file(const char*)’:
../src/image/ml/cnn.hpp:1062:9: error: ‘layers’ was not declared in this scope
layers.clear();
^
../src/image/ml/cnn.hpp:1064:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1064:19: warning: ISO C++ forbids declaration of ‘layer’ with no type [-fpermissive]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1064:27: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1065:22: error: base operand of ‘->’ is not a pointer
if(!layer->weight.empty())
^
../src/image/ml/cnn.hpp:1067:39: error: base operand of ‘->’ is not a pointer
in.read((char*)&*layer->weight.begin(),layer->weight.size()*4);
^
../src/image/ml/cnn.hpp:1067:61: error: base operand of ‘->’ is not a pointer
in.read((char*)&*layer->weight.begin(),layer->weight.size()*4);
^
../src/image/ml/cnn.hpp:1068:39: error: base operand of ‘->’ is not a pointer
in.read((char*)&*layer->bias.begin(),layer->bias.size()*4);
^
../src/image/ml/cnn.hpp:1068:59: error: base operand of ‘->’ is not a pointer
in.read((char*)&*layer->bias.begin(),layer->bias.size()*4);
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:1078:27: error: ‘layers’ was not declared in this scope
for(int k = 0;k < layers.size();++k)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::initialize_training()’:
../src/image/ml/cnn.hpp:1091:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto layer : layers)
^
../src/image/ml/cnn.hpp:1091:18: error: ‘layer’ does not name a type
for(auto layer : layers)
^
../src/image/ml/cnn.hpp:1093:9: error: expected ‘;’ before ‘int’
int thread_count = std::thread::hardware_concurrency();
^
../src/image/ml/cnn.hpp:1093:33: error: ‘std::thread’ has not been declared
int thread_count = std::thread::hardware_concurrency();
^
../src/image/ml/cnn.hpp:1094:37: error: expected ‘)’ before ‘;’ token
dweight.resize(thread_count);
^
../src/image/ml/cnn.hpp:1095:22: error: ‘thread_count’ was not declared in this scope
dbias.resize(thread_count);
^
../src/image/ml/cnn.hpp:1102:31: error: ‘layers’ was not declared in this scope
dweight[i].resize(layers.size());
^
../src/image/ml/cnn.hpp:1115:12: error: ‘layers’ was not declared in this scope
if(layers.back()->af == activation_type::tanh)
^
../src/image/ml/cnn.hpp:1115:33: error: ‘activation_type’ is not a class or namespace
if(layers.back()->af == activation_type::tanh)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::update_weights(float)’:
../src/image/ml/cnn.hpp:1136:17: error: ‘layers’ was not declared in this scope
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp: In lambda function:
../src/image/ml/cnn.hpp:1138:16: error: ‘layers’ is not captured
if(layers[j]->weight.empty())
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1140:35: error: ‘layers’ is not captured
std::vector<float> dw(layers[j]->weight.size());
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1141:35: error: ‘layers’ is not captured
std::vector<float> db(layers[j]->bias.size());
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1142:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0;k < dweight.size();++k)
^
../src/image/ml/cnn.hpp:1149:13: error: ‘layers’ is not captured
layers[j]->update(dw,db,learning_rate);
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1150:42: error: ‘layers’ is not captured
image::upper_lower_threshold(layers[j]->bias,-bias_cap,bias_cap);
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1151:42: error: ‘layers’ is not captured
image::upper_lower_threshold(layers[j]->weight,-weight_cap,weight_cap);
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::update_weights(float)’:
../src/image/ml/cnn.hpp:1152:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
../src/image/ml/cnn.hpp: In lambda function:
../src/image/ml/cnn.hpp:1174:25: error: ‘layers’ was not declared in this scope
for(int k = layers.size()-1;k >= 0;--k)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::train_a_batch(const data_type&, const label_id_type&, int, int, bool&)’:
../src/image/ml/cnn.hpp:1186:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
},std::thread::hardware_concurrency());
^
../src/image/ml/cnn.hpp:1186:16: error: ‘std::thread’ has not been declared
},std::thread::hardware_concurrency());
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<std::vector<float, std::allocator<float> > >&)’:
../src/image/ml/cnn.hpp:1249:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
../src/image/ml/cnn.hpp:1249:10: error: no matching function for call to ‘par_for(int, image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<std::vector<float, std::allocator<float> > >&)::<lambda(int)>)’
});
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:6:6: note: candidate: template<class T, class Func> void image::par_for(T, Func, int)
void par_for(T size, Func f, int thread_count = std::thread::hardware_concurrency())
^
../src/image/utility/multi_thread.hpp:6:6: note: template argument deduction/substitution failed:

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In substitution of ‘template<class T, class Func> void image::par_for(T, Func, int) [with T = int; Func = image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<std::vector<float, std::allocator<float> > >&)::<lambda(int)>]’:
../src/image/ml/cnn.hpp:1249:10: required from here
../src/image/ml/cnn.hpp:1249:10: error: template argument for ‘template<class T, class Func> void image::par_for(T, Func, int)’ uses local type ‘image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<std::vector<float, std::allocator<float> > >&)::<lambda(int)>’
});
^
../src/image/ml/cnn.hpp:1249:10: error: trying to instantiate ‘template<class T, class Func> void image::par_for(T, Func, int)’
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<int>&)’:
../src/image/ml/cnn.hpp:1258:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
../src/image/ml/cnn.hpp:1258:10: error: no matching function for call to ‘par_for(int, image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<int>&)::<lambda(int)>)’
});
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:6:6: note: candidate: template<class T, class Func> void image::par_for(T, Func, int)
void par_for(T size, Func f, int thread_count = std::thread::hardware_concurrency())
^
../src/image/utility/multi_thread.hpp:6:6: note: template argument deduction/substitution failed:

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In substitution of ‘template<class T, class Func> void image::par_for(T, Func, int) [with T = int; Func = image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<int>&)::<lambda(int)>]’:
../src/image/ml/cnn.hpp:1258:10: required from here
../src/image/ml/cnn.hpp:1258:10: error: template argument for ‘template<class T, class Func> void image::par_for(T, Func, int)’ uses local type ‘image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<int>&)::<lambda(int)>’
});
^
../src/image/ml/cnn.hpp:1258:10: error: trying to instantiate ‘template<class T, class Func> void image::par_for(T, Func, int)’
../src/image/ml/cnn.hpp: In function ‘void image::ml::iterate_cnn(const geo_type&, const geo_type&, std::vector<std::basic_string<char> >&, int)’:
../src/image/ml/cnn.hpp:1291:24: error: ‘tuple’ is not a member of ‘std’
std::multimap<int, std::tuple<image::geometry<3>,std::string,char> > candidates;
^
../src/image/ml/cnn.hpp:1291:24: error: ‘tuple’ is not a member of ‘std’
../src/image/ml/cnn.hpp:1291:70: error: template argument 2 is invalid
std::multimap<int, std::tuple<image::geometry<3>,std::string,char> > candidates;
^
../src/image/ml/cnn.hpp:1291:72: error: expected unqualified-id before ‘>’ token
std::multimap<int, std::tuple<image::geometry<3>,std::string,char> > candidates;
^
../src/image/ml/cnn.hpp:1292:5: error: ‘candidates’ was not declared in this scope
candidates.insert(std::make_pair(0,std::make_tuple(in_dim,std::string(),char(1))));
^
../src/image/ml/cnn.hpp:1292:40: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(0,std::make_tuple(in_dim,std::string(),char(1))));
^
../src/image/ml/cnn.hpp:1296:28: error: ‘get’ is not a member of ‘std’
geo_type cur_dim = std::get<0>(candidates.begin()->second);
^
../src/image/ml/cnn.hpp:1297:34: error: ‘get’ is not a member of ‘std’
std::string cur_string = std::get<1>(candidates.begin()->second);
^
../src/image/ml/cnn.hpp:1298:20: error: ‘get’ is not a member of ‘std’
char tag = std::get<2>(candidates.begin()->second);
^
../src/image/ml/cnn.hpp:1322:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"con
^
../src/image/ml/cnn.hpp:1322:112: error: ‘to_string’ is not a member of ‘std’
idates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"conv,relu,"+std::to_str
^
../src/image/ml/cnn.hpp:1323:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"con
^
../src/image/ml/cnn.hpp:1323:112: error: ‘to_string’ is not a member of ‘std’
idates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"conv,tanh,"+std::to_str
^
../src/image/ml/cnn.hpp:1335:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"max
^
../src/image/ml/cnn.hpp:1335:123: error: ‘to_string’ is not a member of ‘std’
rt(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"max_pooling,identity,"+std::to_str
^
../src/image/ml/cnn.hpp:1349:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"ful
^
../src/image/ml/cnn.hpp:1350:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"ful
^
In file included from ../src/image/image.hpp:86:0,
from ../src/main.cpp:10:
../src/image/vis/color_map.hpp: In member function ‘const image::vector<3>& image::color_map::operator[](unsigned int) const’:
../src/image/vis/color_map.hpp:58:89: warning: left operand of comma operator has no effect [-Wunused-value]
const image::vector<3,float>& operator[](unsigned int index) const{return color[255,index];}
^
In file included from ../src/main.cpp:15:0:
../src/program_option.hpp: In member function ‘void program_option::init(int, char**)’:
../src/program_option.hpp:16:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto pos = std::find(str.begin(),str.end(),'=');
^
../src/program_option.hpp:16:18: error: ‘pos’ does not name a type
auto pos = std::find(str.begin(),str.end(),'=');
^
../src/program_option.hpp:17:16: error: ‘pos’ was not declared in this scope
if(pos == str.end())
^
../src/program_option.hpp:19:47: error: ‘pos’ was not declared in this scope
options[std::string(str.begin()+2,pos)] = std::string(pos+1,str.end());
^
../src/program_option.hpp: In member function ‘std::string program_option::get(const char*)’:
../src/program_option.hpp:30:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto value = options.find(name);
^
../src/program_option.hpp:30:14: error: ‘value’ does not name a type
auto value = options.find(name);
^
../src/program_option.hpp:31:12: error: ‘value’ was not declared in this scope
if(value != options.end())
^
../src/program_option.hpp: At global scope:
../src/program_option.hpp:27:33: warning: unused parameter ‘name’ [-Wunused-parameter]
std::string get(const char* name)
^
../src/program_option.hpp: In member function ‘std::string program_option::get(const char*, const char*)’:
../src/program_option.hpp:39:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto value = options.find(name);
^
../src/program_option.hpp:39:14: error: ‘value’ does not name a type
auto value = options.find(name);
^
../src/program_option.hpp:40:12: error: ‘value’ was not declared in this scope
if(value != options.end())
^
../src/program_option.hpp: At global scope:
../src/program_option.hpp:36:33: warning: unused parameter ‘name’ [-Wunused-parameter]
std::string get(const char* name,const char* df_ptr)
^
../src/program_option.hpp: In member function ‘value_type program_option::get(const char*, value_type)’:
../src/program_option.hpp:49:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto value = options.find(name);
^
../src/program_option.hpp:49:14: error: ‘value’ does not name a type
auto value = options.find(name);
^
../src/program_option.hpp:50:12: error: ‘value’ was not declared in this scope
if(value != options.end())
^
In file included from ../src/libs/tracking/fib_data.hpp:9:0,
from ../src/libs/tracking/tract_model.hpp:6,
from ../src/libs/vbc/vbc_database.h:8,
from ../src/tracking/vbc_dialog.hpp:8,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/mapping/connectometry_db.hpp: At global scope:
../src/libs/mapping/connectometry_db.hpp:60:10: error: ‘mutex’ in namespace ‘std’ does not name a type
std::mutex lock_random;
^
../src/libs/mapping/connectometry_db.hpp:120:32: error: ‘std::shared_ptr’ has not been declared
void remove_old_index(std::shared_ptr<fib_data> handle);
^
../src/libs/mapping/connectometry_db.hpp:120:42: error: expected ‘,’ or ‘...’ before ‘<’ token
void remove_old_index(std::shared_ptr<fib_data> handle);
^
../src/libs/mapping/connectometry_db.hpp:121:23: error: ‘std::shared_ptr’ has not been declared
bool compare(std::shared_ptr<fib_data> handle,
^
../src/libs/mapping/connectometry_db.hpp:121:33: error: expected ‘,’ or ‘...’ before ‘<’ token
bool compare(std::shared_ptr<fib_data> handle,
^
../src/libs/mapping/connectometry_db.hpp:126:26: error: ‘std::shared_ptr’ has not been declared
void initialize(std::shared_ptr<fib_data> fib_file);
^
../src/libs/mapping/connectometry_db.hpp:126:36: error: expected ‘,’ or ‘...’ before ‘<’ token
void initialize(std::shared_ptr<fib_data> fib_file);
^
../src/libs/mapping/connectometry_db.hpp:127:40: error: ‘std::shared_ptr’ has not been declared
void add_mapping_for_tracking(std::shared_ptr<fib_data> handle,const char* t1,const char* t2);
^
../src/libs/mapping/connectometry_db.hpp:127:50: error: expected ‘,’ or ‘...’ before ‘<’ token
void add_mapping_for_tracking(std::shared_ptr<fib_data> handle,const char* t1,const char* t2);
^
../src/libs/mapping/connectometry_db.hpp:128:35: error: ‘std::shared_ptr’ has not been declared
bool individual_vs_atlas(std::shared_ptr<fib_data> handle,const char* file_name,unsigned char norm
^
../src/libs/mapping/connectometry_db.hpp:128:45: error: expected ‘,’ or ‘...’ before ‘<’ token
bool individual_vs_atlas(std::shared_ptr<fib_data> handle,const char* file_name,unsigned char norm
^
../src/libs/mapping/connectometry_db.hpp:129:32: error: ‘std::shared_ptr’ has not been declared
bool individual_vs_db(std::shared_ptr<fib_data> handle,const char* file_name);
^
../src/libs/mapping/connectometry_db.hpp:129:42: error: expected ‘,’ or ‘...’ before ‘<’ token
bool individual_vs_db(std::shared_ptr<fib_data> handle,const char* file_name);
^
../src/libs/mapping/connectometry_db.hpp:130:40: error: ‘std::shared_ptr’ has not been declared
bool individual_vs_individual(std::shared_ptr<fib_data> handle,
^
../src/libs/mapping/connectometry_db.hpp:130:50: error: expected ‘,’ or ‘...’ before ‘<’ token
bool individual_vs_individual(std::shared_ptr<fib_data> handle,
^
../src/libs/mapping/connectometry_db.hpp:135:25: error: variable or field ‘calculate_spm’ declared void
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:20: error: ‘shared_ptr’ is not a member of ‘std’
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:44: error: expected primary-expression before ‘>’ token
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:46: error: ‘handle’ was not declared in this scope
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:73: error: expected primary-expression before ‘&’ token
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:75: error: ‘data’ was not declared in this scope
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:90: error: expected primary-expression before ‘&’ token
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:92: error: ‘info’ was not declared in this scope
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:136:20: error: expected primary-expression before ‘float’
float fiber_threshold,bool normalize_qa,bool& terminated);
^
../src/libs/mapping/connectometry_db.hpp:136:42: error: expected primary-expression before ‘bool’
float fiber_threshold,bool normalize_qa,bool& terminated);
^
../src/libs/mapping/connectometry_db.hpp:136:60: error: expected primary-expression before ‘bool’
float fiber_threshold,bool normalize_qa,bool& terminated);
^
In file included from ../src/libs/tracking/tract_model.hpp:6:0,
from ../src/libs/vbc/vbc_database.h:8,
from ../src/tracking/vbc_dialog.hpp:8,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/tracking/fib_data.hpp:177:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool is_running = false;
^
In file included from ../src/libs/vbc/vbc_database.h:8:0,
from ../src/tracking/vbc_dialog.hpp:8,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/tracking/tract_model.hpp:13:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<fib_data> handle;
^
../src/libs/tracking/tract_model.hpp:43:35: error: expected ‘)’ before ‘<’ token
TractModel(std::shared_ptr<fib_data> handle_);
^
../src/libs/tracking/tract_model.hpp: In member function ‘const TractModel& TractModel::operator=(const TractModel&)’:
../src/libs/tracking/tract_model.hpp:48:13: error: ‘handle’ was not declared in this scope
handle = rhs.handle;
^
../src/libs/tracking/tract_model.hpp:48:26: error: ‘const class TractModel’ has no member named ‘handle’
handle = rhs.handle;
^
In file included from ../src/tracking/vbc_dialog.hpp:8:0,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/vbc/vbc_database.h: At global scope:
../src/libs/vbc/vbc_database.h:20:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<fib_data> handle;
^
In file included from ../src/tracking/vbc_dialog.hpp:8:0,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/vbc/vbc_database.h:43:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/libs/vbc/vbc_database.h:43:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/libs/vbc/vbc_database.h:43:33: error: ‘future’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/libs/vbc/vbc_database.h:43:49: error: template argument 1 is invalid
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/libs/vbc/vbc_database.h:43:49: error: template argument 2 is invalid
../src/libs/vbc/vbc_database.h:43:51: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/libs/vbc/vbc_database.h:55:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool terminated = false;
^
../src/libs/vbc/vbc_database.h:63:10: error: ‘mutex’ in namespace ‘std’ does not name a type
std::mutex lock_resampling,lock_greater_tracks,lock_lesser_tracks;
^
../src/libs/vbc/vbc_database.h:64:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<TractModel> > greater_tracks;
^
../src/libs/vbc/vbc_database.h:64:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/libs/vbc/vbc_database.h:64:43: error: template argument 1 is invalid
std::vector<std::shared_ptr<TractModel> > greater_tracks;
^
../src/libs/vbc/vbc_database.h:64:43: error: template argument 2 is invalid
../src/libs/vbc/vbc_database.h:64:45: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<TractModel> > greater_tracks;
^
../src/libs/vbc/vbc_database.h:65:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<TractModel> > lesser_tracks;
^
../src/libs/vbc/vbc_database.h:65:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/libs/vbc/vbc_database.h:65:43: error: template argument 1 is invalid
std::vector<std::shared_ptr<TractModel> > lesser_tracks;
^
../src/libs/vbc/vbc_database.h:65:43: error: template argument 2 is invalid
../src/libs/vbc/vbc_database.h:65:45: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<TractModel> > lesser_tracks;
^
../src/libs/vbc/vbc_database.h:66:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<connectometry_result> > spm_maps;
^
../src/libs/vbc/vbc_database.h:66:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/libs/vbc/vbc_database.h:66:53: error: template argument 1 is invalid
std::vector<std::shared_ptr<connectometry_result> > spm_maps;
^
../src/libs/vbc/vbc_database.h:66:53: error: template argument 2 is invalid
../src/libs/vbc/vbc_database.h:66:55: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<connectometry_result> > spm_maps;
^
In file included from ../src/tracking/vbc_dialog.hpp:8:0,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/vbc/vbc_database.h: In member function ‘void vbc_database::calculate_spm(connectometry_result&, stat_model&, bool)’:
../src/libs/vbc/vbc_database.h:38:9: error: ‘::calculate_spm’ has not been declared
::calculate_spm(handle,data,info,fiber_threshold,nqa,terminated);
^
../src/libs/vbc/vbc_database.h:38:25: error: ‘handle’ was not declared in this scope
::calculate_spm(handle,data,info,fiber_threshold,nqa,terminated);
^
In file included from ../src/cmd/cnt.cpp:4:0,
from ../src/main.cpp:16:
./ui_vbc_dialog.h: In member function ‘void Ui_vbc_dialog::setupUi(QDialog*)’:
./ui_vbc_dialog.h:1185:25: error: ‘class QSpinBox’ has no member named ‘setDisplayIntegerBase’
track_trimming->setDisplayIntegerBase(5);
^
In file included from ../src/main.cpp:16:0:
../src/cmd/cnt.cpp: In function ‘int cnt()’:
../src/cmd/cnt.cpp:110:62: error: ‘thread’ is not a member of ‘std’
vbc->ui->multithread->setValue(po.get("thread_count",int(std::thread::hardware_concurrency())));
^
../src/cmd/cnt.cpp:110:62: note: suggested alternative:
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:42:7: note: ‘image::thread’
class thread{
^
In file included from ../src/main.cpp:16:0:
../src/cmd/cnt.cpp:122:33: error: ‘std::auto_ptr<vbc_database>::element_type {aka class vbc_database}’ has no member named ‘threads’
for(int i = 0;i < vbc->vbc->threads.size();++i)
^
../src/cmd/cnt.cpp:123:19: error: ‘std::auto_ptr<vbc_database>::element_type {aka class vbc_database}’ has no member named ‘threads’
vbc->vbc->threads[i]->wait();
^
../src/main.cpp: In function ‘QStringList search_files(QString, QString)’:
../src/main.cpp:37:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int i = 0;i < dir_list.size();++i)
^
../src/main.cpp:41:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int index = 0;index < new_list.size();++index)
^
../src/main.cpp:44:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < file_list.size();++index)
^
In file included from ../src/image/io/io.hpp:7:0,
from ../src/image/image.hpp:47,
from ../src/main.cpp:10:
../src/image/io/dicom.hpp: In instantiation of ‘bool image::io::dicom::load_from_file(const char_type*) [with char_type = char]’:
../src/image/io/dicom.hpp:499:48: required from here
../src/image/io/dicom.hpp:568:47: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
auto& item = ge_map[ge.get_order()];
^
In file included from ../src/image/numerical/transformation.hpp:3:0,
from ../src/image/image.hpp:34,
from ../src/main.cpp:10:
../src/image/numerical/matrix.hpp: In instantiation of ‘void image::mat::eigen_decomposition_sym(input_iterator, output_iterator1, output_iterator2, const dym_type&) [with input_iterator = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; output_iterator1 = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; output_iterator2 = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; dym_type = image::dyndim]’:
../src/image/ml/em.hpp:33:108: required from here
../src/image/numerical/matrix.hpp:1796:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1805:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1827:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int l = 0,iter = 0;l < dim && iter < 30;++iter)
^
In file included from ../src/image/segmentation/otsu.hpp:4:0,
from ../src/image/segmentation/segmentation.hpp:6,
from ../src/image/image.hpp:32,
from ../src/main.cpp:10:
../src/image/numerical/numerical.hpp: In instantiation of ‘T image::uniform_dist<T>::operator()() [with T = float]’:
../src/image/ml/cnn.hpp:106:29: required from here
../src/image/numerical/numerical.hpp:27:19: error: ‘dst’ was not declared in this scope
return dst(gen);
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In instantiation of ‘static int image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]’:
../src/image/ml/cnn.hpp:246:61: required from here
../src/image/ml/cnn.hpp:253:32: error: no matching function for call to ‘max_element(std::vector<std::vector<int> >::const_iterator, std::vector<std::vector<int> >::const_iterator, image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]::<lambda(const value_t&, const value_t&)>)’
return std::max_element(c.begin(), c.end(), [](const value_t& left, const value_t& right)
^
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/qt4/QtCore/qglobal.h:68,
from /usr/include/qt4/QtCore/qnamespace.h:45,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtCore/qobject.h:47,
from /usr/include/qt4/QtCore/qcoreapplication.h:45,
from /usr/include/qt4/QtGui/qapplication.h:45,
from /usr/include/qt4/QtGui/QApplication:1,
from ../src/main.cpp:5:
/usr/include/c++/5/bits/stl_algo.h:5505:5: note: candidate: template<class _FIter> _FIter std::max_element(_FIter, _FIter)
max_element(_ForwardIterator __first, _ForwardIterator __last)
^
/usr/include/c++/5/bits/stl_algo.h:5505:5: note: template argument deduction/substitution failed:

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp:253:32: note:   candidate expects 2 arguments, 3 provided
return std::max_element(c.begin(), c.end(), [](const value_t& left, const value_t& right)
^
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/qt4/QtCore/qglobal.h:68,
from /usr/include/qt4/QtCore/qnamespace.h:45,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtCore/qobject.h:47,
from /usr/include/qt4/QtCore/qcoreapplication.h:45,
from /usr/include/qt4/QtGui/qapplication.h:45,
from /usr/include/qt4/QtGui/QApplication:1,
from ../src/main.cpp:5:
/usr/include/c++/5/bits/stl_algo.h:5529:5: note: candidate: template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare)
max_element(_ForwardIterator __first, _ForwardIterator __last,
^
/usr/include/c++/5/bits/stl_algo.h:5529:5: note: template argument deduction/substitution failed:

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In substitution of ‘template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<const std::vector<int>*, std::vector<std::vector<int> > >; _Compare = image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]::<lambda(const value_t&, const value_t&)>]’:
../src/image/ml/cnn.hpp:253:32: required from ‘static int image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]’
../src/image/ml/cnn.hpp:246:61: required from here
../src/image/ml/cnn.hpp:253:32: error: template argument for ‘template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare)’ uses local type ‘image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]::<lambda(const value_t&, const value_t&)>’
return std::max_element(c.begin(), c.end(), [](const value_t& left, const value_t& right)
^
../src/image/ml/cnn.hpp:253:32: error: trying to instantiate ‘template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare)’
In file included from ../src/image/image.hpp:69:0,
from ../src/main.cpp:10:
../src/image/reg/reg.hpp: In instantiation of ‘image::reg::normalization<value_type>::normalization() [with value_type = double]’:
../src/libs/tracking/fib_data.hpp:142:33: required from here
../src/image/reg/reg.hpp:23:9: warning: ‘image::reg::normalization<double>::prog’ will be initialized after [-Wreorder]
int prog;
^
../src/image/reg/reg.hpp:19:10: warning: ‘bool image::reg::normalization<double>::has_T’ [-Wreorder]
bool has_T;
^
../src/image/reg/reg.hpp:28:5: warning: when initialized here [-Wreorder]
normalization(void):prog(0),has_T(false){}
^
In file included from ../src/main.cpp:15:0:
../src/program_option.hpp: In instantiation of ‘value_type program_option::get(const char*, value_type) [with value_type = int]’:
../src/cmd/cnt.cpp:28:33: required from here
../src/program_option.hpp:47:32: warning: unused parameter ‘name’ [-Wunused-parameter]
value_type get(const char* name,value_type df)
^
../src/program_option.hpp: In instantiation of ‘value_type program_option::get(const char*, value_type) [with value_type = float]’:
../src/cmd/cnt.cpp:92:73: required from here
../src/program_option.hpp:47:32: warning: unused parameter ‘name’ [-Wunused-parameter]
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/main.cpp:10:
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = double]’:
../src/image/numerical/basic_op.hpp:853:22: required from ‘void image::change_endian(datatype*, size_type) [with datatype = double; size_type = long unsigned int]’
../src/image/io/dicom.hpp:162:85: required from here
../src/image/numerical/basic_op.hpp:814:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (char i = 0; i < sizeof(type); ++i,--pdata)
^
../src/image/numerical/basic_op.hpp:815:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = *pdata;

^
make: *** [main.o] Error 1
pkao@vader:build$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.3.0-3ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=gcc4-compatible --disable-libstdcxx-dual-abi --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.3.0 20151204 (Ubuntu 5.3.0-3ubuntu1~14.04)
pkao@vader:build$ htop
pkao@vader:build$ sudo reboot
[sudo] password for pkao:

Broadcast message from pkao@vader
(/dev/pts/0) at 11:33 ...

The system is going down for reboot NOW!
pkao@vader:build$ Connection to 128.111.185.127 closed by remote host.
Connection to 128.111.185.127 closed.
poyu@poyu-XPS-8500:~$ ssh pk...@128.111.185.127
pk...@128.111.185.127's password:
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-88-generic x86_64)

* Documentation: https://help.ubuntu.com/

Last login: Mon Jun 20 11:15:11 2016 from dhcp185-202.ece.ucsb.edu
pkao@vader:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.3.0-3ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=gcc4-compatible --disable-libstdcxx-dual-abi --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.3.0 20151204 (Ubuntu 5.3.0-3ubuntu1~14.04)
pkao@vader:~$ ls
BRATS2015 Desktop Downloads examples.desktop Music myDeepMedic_class_1.png myDeepMedic_class_3.png Pictures Templates
deepmedic Documents dsistudio med myDeepMedic_class_0.png myDeepMedic_class_2.png myDeepMedic_class_4.png Public Videos
pkao@vader:~$ cd dsistudio/
pkao@vader:dsistudio$ cd build/
pkao@vader:build$ make
g++ -c -m64 -pipe -fpermissive -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../src -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -I/usr/X11R6/include -I. -I. -I../src -I. -o main.o ../src/main.cpp
In file included from /usr/include/c++/5/random:35:0,
from ../src/image/numerical/numerical.hpp:4,
from ../src/image/segmentation/otsu.hpp:4,
from ../src/image/segmentation/segmentation.hpp:6,
from ../src/image/image.hpp:32,
from ../src/main.cpp:10:
/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 is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/main.cpp:10:
../src/image/numerical/basic_op.hpp: In function ‘void image::change_endian(type&)’:
../src/image/numerical/basic_op.hpp:815:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = *pdata;
^
In file included from ../src/image/segmentation/otsu.hpp:4:0,
from ../src/image/segmentation/segmentation.hpp:6,
from ../src/image/image.hpp:32,
from ../src/main.cpp:10:
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:13:10: error: ‘mt19937’ in namespace ‘std’ does not name a type
std::mt19937 gen;
^
../src/image/numerical/numerical.hpp:14:10: error: ‘normal_distribution’ in namespace ‘std’ does not name a template type
std::normal_distribution<T> dst;
^
../src/image/numerical/numerical.hpp: In constructor ‘image::normal_dist<T>::normal_dist(unsigned int)’:
../src/image/numerical/numerical.hpp:15:40: error: class ‘image::normal_dist<T>’ does not have any field named ‘gen’
normal_dist(unsigned int seed = 0):gen(seed){}
^
../src/image/numerical/numerical.hpp: In member function ‘T image::normal_dist<T>::operator()()’:
../src/image/numerical/numerical.hpp:17:20: error: ‘gen’ was not declared in this scope
return dst(gen);
^
../src/image/numerical/numerical.hpp:17:23: warning: there are no arguments to ‘dst’ that depend on a template parameter, so a declaration of ‘dst’ must be available [-fpermissive]
return dst(gen);
^
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:23:10: error: ‘mt19937’ in namespace ‘std’ does not name a type
std::mt19937 gen;
^
../src/image/numerical/numerical.hpp:24:10: error: ‘uniform_real_distribution’ in namespace ‘std’ does not name a template type
std::uniform_real_distribution<T> dst;
^
../src/image/numerical/numerical.hpp: In constructor ‘image::uniform_dist<T>::uniform_dist(T, T, unsigned int)’:
../src/image/numerical/numerical.hpp:25:68: error: class ‘image::uniform_dist<T>’ does not have any field named ‘gen’
uniform_dist(T min = T(0), T max = T(1),unsigned int seed = 0):gen(seed),dst(min, max){}
^
../src/image/numerical/numerical.hpp:25:78: error: class ‘image::uniform_dist<T>’ does not have any field named ‘dst’
uniform_dist(T min = T(0), T max = T(1),unsigned int seed = 0):gen(seed),dst(min, max){}
^
../src/image/numerical/numerical.hpp: In member function ‘T image::uniform_dist<T>::operator()()’:
../src/image/numerical/numerical.hpp:27:20: error: ‘gen’ was not declared in this scope
return dst(gen);
^
../src/image/numerical/numerical.hpp:27:23: warning: there are no arguments to ‘dst’ that depend on a template parameter, so a declaration of ‘dst’ must be available [-fpermissive]
return dst(gen);
^
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:32:10: error: ‘mt19937’ in namespace ‘std’ does not name a type
std::mt19937 gen;
^
../src/image/numerical/numerical.hpp:33:10: error: ‘uniform_int_distribution’ in namespace ‘std’ does not name a template type
std::uniform_int_distribution<int> dst;
^
../src/image/numerical/numerical.hpp: In constructor ‘image::uniform_dist<int>::uniform_dist(int, int, unsigned int)’:
../src/image/numerical/numerical.hpp:34:58: error: class ‘image::uniform_dist<int>’ does not have any field named ‘gen’
uniform_dist(int min, int max,unsigned int seed = 0):gen(seed),dst(min, max){}
^
../src/image/numerical/numerical.hpp:34:68: error: class ‘image::uniform_dist<int>’ does not have any field named ‘dst’
uniform_dist(int min, int max,unsigned int seed = 0):gen(seed),dst(min, max){}
^
../src/image/numerical/numerical.hpp: In constructor ‘image::uniform_dist<int>::uniform_dist(int, unsigned int)’:
../src/image/numerical/numerical.hpp:35:51: error: class ‘image::uniform_dist<int>’ does not have any field named ‘gen’
uniform_dist(int size, unsigned int seed = 0):gen(seed),dst(0, size-1){}
^
../src/image/numerical/numerical.hpp:35:61: error: class ‘image::uniform_dist<int>’ does not have any field named ‘dst’
uniform_dist(int size, unsigned int seed = 0):gen(seed),dst(0, size-1){}
^
../src/image/numerical/numerical.hpp: In constructor ‘image::uniform_dist<int>::uniform_dist(unsigned int)’:
../src/image/numerical/numerical.hpp:36:41: error: class ‘image::uniform_dist<int>’ does not have any field named ‘gen’
uniform_dist(unsigned int seed = 0):gen(seed),dst(){}
^
../src/image/numerical/numerical.hpp:36:51: error: class ‘image::uniform_dist<int>’ does not have any field named ‘dst’
uniform_dist(unsigned int seed = 0):gen(seed),dst(){}
^
../src/image/numerical/numerical.hpp: In member function ‘int image::uniform_dist<int>::operator()()’:
../src/image/numerical/numerical.hpp:38:20: error: ‘gen’ was not declared in this scope
return dst(gen);
^
../src/image/numerical/numerical.hpp:38:23: error: ‘dst’ was not declared in this scope
return dst(gen);
^
../src/image/numerical/numerical.hpp: In member function ‘int image::uniform_dist<int>::operator()(unsigned int)’:
../src/image/numerical/numerical.hpp:41:9: error: ‘uniform_int_distribution’ is not a member of ‘std’
std::uniform_int_distribution<int> temp_dst(0,size-1);
^
../src/image/numerical/numerical.hpp:41:39: error: expected primary-expression before ‘int’
std::uniform_int_distribution<int> temp_dst(0,size-1);
^
../src/image/numerical/numerical.hpp:42:25: error: ‘gen’ was not declared in this scope
return temp_dst(gen);
^
../src/image/numerical/numerical.hpp:42:28: error: ‘temp_dst’ was not declared in this scope
return temp_dst(gen);
^
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:40:33: warning: unused parameter ‘size’ [-Wunused-parameter]
int operator()(unsigned int size){
^
../src/image/numerical/numerical.hpp: In member function ‘void image::uniform_dist<int>::reset(int)’:
../src/image/numerical/numerical.hpp:46:9: error: ‘gen’ was not declared in this scope
gen.seed(seed);
^
../src/image/numerical/numerical.hpp: At global scope:
../src/image/numerical/numerical.hpp:52:10: error: ‘mt19937’ in namespace ‘std’ does not name a type
std::mt19937 gen;
^
../src/image/numerical/numerical.hpp:53:10: error: ‘uniform_real_distribution’ in namespace ‘std’ does not name a template type
std::uniform_real_distribution<float> dst;
^
../src/image/numerical/numerical.hpp: In constructor ‘image::bernoulli::bernoulli(float, unsigned int)’:
../src/image/numerical/numerical.hpp:54:53: error: class ‘image::bernoulli’ does not have any field named ‘gen’
bernoulli(float p_,unsigned int seed = 0):p(p_),gen(seed),dst(float(0), float(1)){}
^
../src/image/numerical/numerical.hpp:54:63: error: class ‘image::bernoulli’ does not have any field named ‘dst’
bernoulli(float p_,unsigned int seed = 0):p(p_),gen(seed),dst(float(0), float(1)){}
^
../src/image/numerical/numerical.hpp: In member function ‘bool image::bernoulli::operator()()’:
../src/image/numerical/numerical.hpp:56:20: error: ‘gen’ was not declared in this scope
return dst(gen) <= p;
^
../src/image/numerical/numerical.hpp:56:23: error: ‘dst’ was not declared in this scope
return dst(gen) <= p;
^
../src/image/numerical/numerical.hpp: In function ‘void image::normalize_abs(ImageType&, float)’:
../src/image/numerical/numerical.hpp:744:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto minmax = std::minmax_element(image.begin(),image.end());
^
../src/image/numerical/numerical.hpp:744:10: error: ‘minmax’ does not name a type
auto minmax = std::minmax_element(image.begin(),image.end());
^
../src/image/numerical/numerical.hpp:745:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto scale = std::max(-*minmax.first,*minmax.second);
^
../src/image/numerical/numerical.hpp:745:10: error: ‘scale’ does not name a type
auto scale = std::max(-*minmax.first,*minmax.second);
^
../src/image/numerical/numerical.hpp:746:8: error: ‘scale’ was not declared in this scope
if(scale != 0)
^
In file included from ../src/image/image.hpp:44:0,
from ../src/main.cpp:10:
../src/image/numerical/statistics.hpp: In function ‘typename std::iterator_traits<_Iterator>::value_type image::median(input_iterator, input_iterator)’:
../src/image/numerical/statistics.hpp:136:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto size = std::distance(begin, end);
^
../src/image/numerical/statistics.hpp:136:10: error: ‘size’ does not name a type
auto size = std::distance(begin, end);
^
../src/image/numerical/statistics.hpp:137:5: error: ‘size’ was not declared in this scope
size /= 2;
^
../src/image/numerical/statistics.hpp:139:13: error: ‘next’ is not a member of ‘std’
return *std::next(begin, size);
^
In file included from ../src/image/io/io.hpp:7:0,
from ../src/image/image.hpp:47,
from ../src/main.cpp:10:
../src/image/io/dicom.hpp: In member function ‘bool image::io::dicom::load_from_file(const char_type*)’:
../src/image/io/dicom.hpp:568:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto& item = ge_map[ge.get_order()];
^
../src/image/io/dicom.hpp:568:19: warning: ISO C++ forbids declaration of ‘item’ with no type [-fpermissive]
auto& item = ge_map[ge.get_order()];
^
../src/image/io/dicom.hpp: In member function ‘void image::io::dicom::get_image_dimension(image::geometry<3>&) const’:
../src/image/io/dicom.hpp:831:26: error: ‘stoi’ is not a member of ‘std’
geo[2] = std::stoi(mosaic);
^
In file included from ../src/image/image.hpp:47:0,
from ../src/main.cpp:10:
../src/image/io/io.hpp: In member function ‘void image::io::volume::change_orientation(bool, bool, bool)’:
../src/image/io/io.hpp:45:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(xyz[dim_order[index]])
^
In file included from ../src/image/image.hpp:51:0,
from ../src/main.cpp:10:
../src/image/io/mat.hpp: In constructor ‘image::io::mat_matrix::mat_matrix(const string&)’:
../src/image/io/mat.hpp:92:18: warning: ‘image::io::mat_matrix::namelen’ will be initialized after [-Wreorder]
unsigned int namelen;
^
../src/image/io/mat.hpp:91:17: warning: ‘std::string image::io::mat_matrix::name’ [-Wreorder]
std::string name;
^
../src/image/io/mat.hpp:115:5: warning: when initialized here [-Wreorder]
mat_matrix(const std::string& name_):type(0),rows(0),cols(0),namelen((unsigned int)name_.size()+1),name(name_),data_ptr(0) {}
^
In file included from ../src/image/image.hpp:52:0,
from ../src/main.cpp:10:
../src/image/io/2dseq.hpp: At global scope:
../src/image/io/2dseq.hpp:97:21: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool slice_2d = true;
^
In file included from ../src/image/image.hpp:65:0,
from ../src/main.cpp:10:
../src/image/reg/linear.hpp:121:19: error: ‘shared_ptr’ is not a member of ‘std’
std::list<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/linear.hpp:121:19: error: ‘shared_ptr’ is not a member of ‘std’
../src/image/reg/linear.hpp:121:35: error: ‘future’ is not a member of ‘std’
std::list<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/linear.hpp:121:51: error: template argument 1 is invalid
std::list<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/linear.hpp:121:51: error: template argument 2 is invalid
../src/image/reg/linear.hpp:121:53: error: expected unqualified-id before ‘>’ token
std::list<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/linear.hpp: In constructor ‘image::reg::mt_correlation<image_type, transform_type>::mt_correlation()’:
../src/image/reg/linear.hpp:131:53: error: ‘std::thread’ has not been declared
mt_correlation(void):end(false),status(std::thread::hardware_concurrency()),I1(0)
^
../src/image/reg/linear.hpp:134:17: error: ‘threads’ was not declared in this scope
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/linear.hpp:134:35: error: ‘make_shared’ is not a member of ‘std’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/linear.hpp:134:52: error: ‘future’ is not a member of ‘std’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/linear.hpp:134:64: error: expected primary-expression before ‘void’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/linear.hpp: In destructor ‘image::reg::mt_correlation<image_type, transform_type>::~mt_correlation()’:
../src/image/reg/linear.hpp:140:17: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& i:threads)
^
../src/image/reg/linear.hpp:140:23: warning: ISO C++ forbids declaration of ‘i’ with no type [-fpermissive]
for(auto& i:threads)
^
../src/image/reg/linear.hpp:140:25: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& i:threads)
^
../src/image/reg/linear.hpp:140:25: error: ‘threads’ was not declared in this scope
../src/image/reg/linear.hpp:141:18: error: base operand of ‘->’ is not a pointer
i->wait();
^
In file included from ../src/image/image.hpp:68:0,
from ../src/main.cpp:10:
../src/image/reg/bfnorm.hpp: In function ‘void image::reg::bfnorm(image::reg::bfnorm_mapping<value_type, 3>&, const ImageType&, const ImageType&, unsigned int, terminator_type&, int&)’:
../src/image/reg/bfnorm.hpp:860:21: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/bfnorm.hpp:860:21: error: ‘shared_ptr’ is not a member of ‘std’
../src/image/reg/bfnorm.hpp:860:37: error: ‘future’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/bfnorm.hpp:860:53: error: template argument 1 is invalid
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/bfnorm.hpp:860:53: error: template argument 2 is invalid
../src/image/reg/bfnorm.hpp:860:55: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/image/reg/bfnorm.hpp:863:13: error: ‘threads’ was not declared in this scope
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:863:31: error: ‘make_shared’ is not a member of ‘std’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:863:48: error: ‘future’ is not a member of ‘std’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:863:60: error: expected primary-expression before ‘void’
threads.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:867:27: error: ‘threads’ was not declared in this scope
for(int i = 0;i < threads.size();++i)
^
../src/image/reg/bfnorm.hpp:871:21: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads2;
^
../src/image/reg/bfnorm.hpp:871:21: error: ‘shared_ptr’ is not a member of ‘std’
../src/image/reg/bfnorm.hpp:871:37: error: ‘future’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads2;
^
../src/image/reg/bfnorm.hpp:871:53: error: template argument 1 is invalid
std::vector<std::shared_ptr<std::future<void> > > threads2;
^
../src/image/reg/bfnorm.hpp:871:53: error: template argument 2 is invalid
../src/image/reg/bfnorm.hpp:871:55: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<std::future<void> > > threads2;
^
../src/image/reg/bfnorm.hpp:873:17: error: ‘threads2’ was not declared in this scope
threads2.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:873:36: error: ‘make_shared’ is not a member of ‘std’
threads2.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:873:53: error: ‘future’ is not a member of ‘std’
threads2.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:873:65: error: expected primary-expression before ‘void’
threads2.push_back(std::make_shared<std::future<void> >(std::async(std::launch::async,
^
../src/image/reg/bfnorm.hpp:876:27: error: ‘threads2’ was not declared in this scope
for(int i = 0;i < threads2.size();++i)
^
In file included from ../src/image/image.hpp:69:0,
from ../src/main.cpp:10:
../src/image/reg/reg.hpp: At global scope:
../src/image/reg/reg.hpp:22:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<image::reg::bfnorm_mapping<value_type,3> > bnorm_data;
^
../src/image/reg/reg.hpp:53:42: error: ‘std::thread’ has not been declared
int thread_count = std::thread::hardware_concurrency())
^
../src/image/reg/reg.hpp: In member function ‘void image::reg::normalization<value_type>::run_reg(const image_type&, const vector_type&, const image_type&, const vector_type&, int, image::reg::reg_cost_type, image::reg::reg_type, terminate_type&, int)’:
../src/image/reg/reg.hpp:60:9: error: ‘bnorm_data’ was not declared in this scope
bnorm_data.reset(new image::reg::bfnorm_mapping<value_type,3>(to.geometry(),
^
../src/image/reg/reg.hpp: In member function ‘void image::reg::normalization<value_type>::operator()(const vtype&, vtype2&)’:
../src/image/reg/reg.hpp:102:15: error: ‘bnorm_data’ was not declared in this scope
(*bnorm_data.get())(image::vector<3,int>(pos[0],pos[1],pos[2]),out);
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp: At global scope:
../src/image/utility/multi_thread.hpp:6:54: error: ‘std::thread’ has not been declared
void par_for(T size, Func f, int thread_count = std::thread::hardware_concurrency())
^
../src/image/utility/multi_thread.hpp: In function ‘void image::par_for(T, Func, int)’:
../src/image/utility/multi_thread.hpp:8:17: error: ‘future’ is not a member of ‘std’
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:8:17: error: ‘future’ is not a member of ‘std’
../src/image/utility/multi_thread.hpp:8:33: error: template argument 1 is invalid
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:8:33: error: template argument 2 is invalid
../src/image/utility/multi_thread.hpp:8:35: error: expected unqualified-id before ‘>’ token
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:11:9: error: ‘futures’ was not declared in this scope
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:11:27: error: ‘move’ is not a member of ‘std’
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:11:27: note: suggested alternative:
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/main.cpp:10:
../src/image/numerical/basic_op.hpp:233:6: note: ‘image::move’
void move(basic_image<PixelType,3>& src,PosType pos)
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:11:37: error: ‘async’ is not a member of ‘std’
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:11:53: error: ‘std::launch’ has not been declared
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:15:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
})));
^
../src/image/utility/multi_thread.hpp:19:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:19:15: warning: ISO C++ forbids declaration of ‘future’ with no type [-fpermissive]
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:19:24: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:19:24: error: ‘futures’ was not declared in this scope
../src/image/utility/multi_thread.hpp:20:16: error: request for member ‘wait’ in ‘future’, which is of non-class type ‘int’
future.wait();
^
../src/image/utility/multi_thread.hpp: At global scope:
../src/image/utility/multi_thread.hpp:24:55: error: ‘std::thread’ has not been declared
void par_for2(T size, Func f, int thread_count = std::thread::hardware_concurrency())
^
../src/image/utility/multi_thread.hpp: In function ‘void image::par_for2(T, Func, int)’:
../src/image/utility/multi_thread.hpp:26:17: error: ‘future’ is not a member of ‘std’
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:26:17: error: ‘future’ is not a member of ‘std’
../src/image/utility/multi_thread.hpp:26:33: error: template argument 1 is invalid
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:26:33: error: template argument 2 is invalid
../src/image/utility/multi_thread.hpp:26:35: error: expected unqualified-id before ‘>’ token
std::vector<std::future<void> > futures;
^
../src/image/utility/multi_thread.hpp:29:9: error: ‘futures’ was not declared in this scope
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:29:27: error: ‘move’ is not a member of ‘std’
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:29:27: note: suggested alternative:
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/main.cpp:10:
../src/image/numerical/basic_op.hpp:233:6: note: ‘image::move’
void move(basic_image<PixelType,3>& src,PosType pos)
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:29:37: error: ‘async’ is not a member of ‘std’
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:29:53: error: ‘std::launch’ has not been declared
futures.push_back(std::move(std::async(std::launch::async, [id,size,thread_count,&f]
^
../src/image/utility/multi_thread.hpp:33:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
})));
^
../src/image/utility/multi_thread.hpp:37:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:37:15: warning: ISO C++ forbids declaration of ‘future’ with no type [-fpermissive]
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:37:24: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto &future : futures)
^
../src/image/utility/multi_thread.hpp:37:24: error: ‘futures’ was not declared in this scope
../src/image/utility/multi_thread.hpp:38:16: error: request for member ‘wait’ in ‘future’, which is of non-class type ‘int’
future.wait();
^
../src/image/utility/multi_thread.hpp: At global scope:
../src/image/utility/multi_thread.hpp:44:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<std::future<void> > th;
^
../src/image/utility/multi_thread.hpp:61:25: error: expected ‘,’ or ‘...’ before ‘&&’ token
void run(lambda_type&& fun)
^
../src/image/utility/multi_thread.hpp: In member function ‘void image::thread::clear()’:
../src/image/utility/multi_thread.hpp:53:12: error: ‘th’ was not declared in this scope
if(th.get())
^
../src/image/utility/multi_thread.hpp: In member function ‘void image::thread::run(lambda_type)’:
../src/image/utility/multi_thread.hpp:66:9: error: ‘th’ was not declared in this scope
th.reset(new std::future<void>(std::async(std::launch::async,fun)));
^
../src/image/utility/multi_thread.hpp:66:27: error: ‘future’ in namespace ‘std’ does not name a template type
th.reset(new std::future<void>(std::async(std::launch::async,fun)));
^
../src/image/utility/multi_thread.hpp:66:34: error: expected primary-expression before ‘void’
th.reset(new std::future<void>(std::async(std::launch::async,fun)));
^
../src/image/utility/multi_thread.hpp: In member function ‘void image::thread::wait()’:
../src/image/utility/multi_thread.hpp:70:9: error: ‘th’ was not declared in this scope
th->wait();
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:95:39: error: ‘activation_type’ is not a class or namespace
basic_layer(activation_type af_ = activation_type::tanh):af(af_),weight_base(1){}
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::initialize_weight(image::uniform_dist<float>&)’:
../src/image/ml/cnn.hpp:105:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < weight.size(); ++i)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::forward_af(float*)’:
../src/image/ml/cnn.hpp:122:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::tanh)
^
../src/image/ml/cnn.hpp:125:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::sigmoid)
^
../src/image/ml/cnn.hpp:128:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::relu)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:136:46: warning: unused parameter ‘dE_da’ [-Wunused-parameter]
virtual void calculate_dwdb(const float* dE_da,
^
../src/image/ml/cnn.hpp:137:48: warning: unused parameter ‘prev_out’ [-Wunused-parameter]
const float* prev_out,
^
../src/image/ml/cnn.hpp:138:55: warning: unused parameter ‘dweight’ [-Wunused-parameter]
std::vector<float>& dweight,
^
../src/image/ml/cnn.hpp:139:55: warning: unused parameter ‘dbias’ [-Wunused-parameter]
std::vector<float>& dbias){}
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::back_af(float*, const float*)’:
../src/image/ml/cnn.hpp:145:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::tanh)
^
../src/image/ml/cnn.hpp:148:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::sigmoid)
^
../src/image/ml/cnn.hpp:151:18: error: ‘activation_type’ is not a class or namespace
if(af == activation_type::relu)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:169:82: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim_,const image::geometry<3>& out_dim) override
^
../src/image/ml/cnn.hpp:175:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:183:50: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
std::vector<float>& dbias) override
^
../src/image/ml/cnn.hpp:221:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float*) override
^
../src/image/ml/cnn.hpp:270:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:285:50: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
std::vector<float>& dbias) override
^
../src/image/ml/cnn.hpp:308:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float*) override
^
../src/image/ml/cnn.hpp: In static member function ‘static int image::ml::partial_connected_layer::max_size(const Container&)’:
../src/image/ml/cnn.hpp:256:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
})->size();
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:277:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < o2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::calculate_dwdb(const float*, const float*, std::vector<float, std::allocator<float> >&, std::vector<float, std::allocator<float> >&)’:
../src/image/ml/cnn.hpp:287:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < w2o_1.size(); i++)
^
../src/image/ml/cnn.hpp:292:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < w2o_1i.size();++j)
^
../src/image/ml/cnn.hpp:297:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < b2o.size(); i++)
^
../src/image/ml/cnn.hpp:301:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < outs.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:315:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < i2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:329:81: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim,const image::geometry<3>& out_dim) override
^
../src/image/ml/cnn.hpp:386:83: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim_,const image::geometry<3>& out_dim_) override
^
../src/image/ml/cnn.hpp:396:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:411:48: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float* prev_out) override
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:398:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp:400:31: error: ‘lowest’ is not a member of ‘std::numeric_limits<float>’
float max_value = std::numeric_limits<float>::lowest();
^
../src/image/ml/cnn.hpp:401:17: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto j : o2i[i])
^
../src/image/ml/cnn.hpp:401:22: error: ‘j’ does not name a type
for(auto j : o2i[i])
^
../src/image/ml/cnn.hpp:406:13: error: expected ‘;’ before ‘out’
out[i] = max_value;
^
../src/image/ml/cnn.hpp:406:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
out[i] = max_value;
^
../src/image/ml/cnn.hpp:407:9: error: expected primary-expression before ‘}’ token
}
^
../src/image/ml/cnn.hpp:407:9: error: expected ‘)’ before ‘}’ token
../src/image/ml/cnn.hpp:407:9: error: expected primary-expression before ‘}’ token
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:396:43: warning: unused parameter ‘data’ [-Wunused-parameter]
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:415:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp:417:31: error: ‘lowest’ is not a member of ‘std::numeric_limits<float>’
float max_value = std::numeric_limits<float>::lowest();
^
../src/image/ml/cnn.hpp:418:17: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto j : o2i[i])
^
../src/image/ml/cnn.hpp:418:22: error: ‘j’ does not name a type
for(auto j : o2i[i])
^
../src/image/ml/cnn.hpp:426:9: error: expected ‘;’ before ‘}’ token
}
^
../src/image/ml/cnn.hpp:426:9: error: expected primary-expression before ‘}’ token
../src/image/ml/cnn.hpp:426:9: error: expected ‘;’ before ‘}’ token
../src/image/ml/cnn.hpp:426:9: error: expected primary-expression before ‘}’ token
../src/image/ml/cnn.hpp:426:9: error: expected ‘)’ before ‘}’ token
../src/image/ml/cnn.hpp:426:9: error: expected primary-expression before ‘}’ token
../src/image/ml/cnn.hpp:417:19: warning: unused variable ‘max_value’ [-Wunused-variable]
float max_value = std::numeric_limits<float>::lowest();
^
../src/image/ml/cnn.hpp:427:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < i2o.size(); i++)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:411:40: warning: unused parameter ‘prev_out’ [-Wunused-parameter]
const float* prev_out) override
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::connection_table::connection_table(int, int)’:
../src/image/ml/cnn.hpp:475:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int y = 0;y < c.height();++y)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:506:83: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim_,const image::geometry<3>& out_dim_) override
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp:532:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:562:50: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
std::vector<float>& dbias) override
^
../src/image/ml/cnn.hpp:594:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float*) override
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In constructor ‘image::ml::convolutional_layer::convolutional_layer(image::ml::activation_type, int, const image::ml::connection_table&)’:
../src/image/ml/cnn.hpp:498:9: warning: ‘image::ml::convolutional_layer::kernel_size’ will be initialized after [-Wreorder]
int kernel_size;
^
../src/image/ml/cnn.hpp:495:22: warning: ‘image::ml::connection_table image::ml::convolutional_layer::connection’ [-Wreorder]
connection_table connection;
^
../src/image/ml/cnn.hpp:500:5: warning: when initialized here [-Wreorder]
convolutional_layer(activation_type af_,int kernel_size_,const connection_table& connection_ = connection_table())
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:676:81: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void init(const image::geometry<3>& in_dim,const image::geometry<3>& out_dim) override
^
../src/image/ml/cnn.hpp:682:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
void forward_propagation(const float* data,float* out) override
^
../src/image/ml/cnn.hpp:692:48: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
const float* prev_out) override
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::soft_max_layer::soft_max_layer()’:
../src/image/ml/cnn.hpp:673:23: error: ‘activation_type’ is not a class or namespace
: basic_layer(activation_type::identity)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:760:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<basic_layer> > layers;
^
../src/image/ml/cnn.hpp:760:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/image/ml/cnn.hpp:760:44: error: template argument 1 is invalid
std::vector<std::shared_ptr<basic_layer> > layers;
^
../src/image/ml/cnn.hpp:760:44: error: template argument 2 is invalid
../src/image/ml/cnn.hpp:760:46: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<basic_layer> > layers;
^
../src/image/ml/cnn.hpp:768:35: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned int training_count = 0;
^
../src/image/ml/cnn.hpp:769:41: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned int training_error_count = 0;
^
../src/image/ml/cnn.hpp:770:32: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
unsigned int output_size = 0;
^
../src/image/ml/cnn.hpp:1241:50: error: ‘>>’ should be ‘> >’ within a nested template argument list
void test(const std::vector<std::vector<float>>& data,
^
../src/image/ml/cnn.hpp:1251:50: error: ‘>>’ should be ‘> >’ within a nested template argument list
void test(const std::vector<std::vector<float>>& data,
^
../src/image/ml/cnn.hpp:1212:40: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
iter_type iter_fun = []{},float learning_rate = 0.0001)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::reset()’:
../src/image/ml/cnn.hpp:775:9: error: ‘layers’ was not declared in this scope
layers.clear();
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::add(image::ml::basic_layer*)’:
../src/image/ml/cnn.hpp:783:9: error: ‘layers’ was not declared in this scope
layers.push_back(std::shared_ptr<basic_layer>(new_layer));
^
../src/image/ml/cnn.hpp:783:26: error: ‘shared_ptr’ is not a member of ‘std’
layers.push_back(std::shared_ptr<basic_layer>(new_layer));
^
../src/image/ml/cnn.hpp:783:53: error: expected primary-expression before ‘>’ token
layers.push_back(std::shared_ptr<basic_layer>(new_layer));
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::add(const image::geometry<3>&)’:
../src/image/ml/cnn.hpp:787:13: error: ‘layers’ was not declared in this scope
if(!layers.empty())
^
../src/image/ml/cnn.hpp: In member function ‘unsigned int image::ml::network::computation_cost() const’:
../src/image/ml/cnn.hpp:796:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:796:19: warning: ISO C++ forbids declaration of ‘layer’ with no type [-fpermissive]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:796:27: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:796:27: error: ‘layers’ was not declared in this scope
../src/image/ml/cnn.hpp:797:26: error: base operand of ‘->’ is not a pointer
cost += layer->computation_cost();
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::get_min_max(std::vector<float, std::allocator<float> >&, std::vector<float, std::allocator<float> >&, std::vector<float, std::allocator<float> >&, std::vector<float, std::allocator<float> >&)’:
../src/image/ml/cnn.hpp:805:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:805:19: warning: ISO C++ forbids declaration of ‘layer’ with no type [-fpermissive]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:805:27: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:805:27: error: ‘layers’ was not declared in this scope
../src/image/ml/cnn.hpp:806:18: error: base operand of ‘->’ is not a pointer
if(!layer->weight.empty())
^
../src/image/ml/cnn.hpp:808:51: error: base operand of ‘->’ is not a pointer
wmin.push_back(*std::min_element(layer->weight.begin(),layer->weight.end()));
^
../src/image/ml/cnn.hpp:808:73: error: base operand of ‘->’ is not a pointer
wmin.push_back(*std::min_element(layer->weight.begin(),layer->weight.end()));
^
../src/image/ml/cnn.hpp:809:51: error: base operand of ‘->’ is not a pointer
wmax.push_back(*std::max_element(layer->weight.begin(),layer->weight.end()));
^
../src/image/ml/cnn.hpp:809:73: error: base operand of ‘->’ is not a pointer
wmax.push_back(*std::max_element(layer->weight.begin(),layer->weight.end()));
^
../src/image/ml/cnn.hpp:810:51: error: base operand of ‘->’ is not a pointer
bmin.push_back(*std::min_element(layer->bias.begin(),layer->bias.end()));
^
../src/image/ml/cnn.hpp:810:71: error: base operand of ‘->’ is not a pointer
bmin.push_back(*std::min_element(layer->bias.begin(),layer->bias.end()));
^
../src/image/ml/cnn.hpp:811:51: error: base operand of ‘->’ is not a pointer
bmax.push_back(*std::max_element(layer->bias.begin(),layer->bias.end()));
^
../src/image/ml/cnn.hpp:811:71: error: base operand of ‘->’ is not a pointer
bmax.push_back(*std::max_element(layer->bias.begin(),layer->bias.end()));
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::to_image(image::color_image&, std::vector<float, std::allocator<float> >, int, int)’:
../src/image/ml/cnn.hpp:824:44: error: ‘layers’ was not declared in this scope
std::vector<image::color_image> Is(layers.size());
^
../src/image/ml/cnn.hpp:835:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(I2.width() > max_width)
^
../src/image/ml/cnn.hpp:842:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < I2.size();++j)
^
../src/image/ml/cnn.hpp:864:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:873:25: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto v = image::make_image((i == 0 ? in_buf : out_buf)+geo[i].plane_size()*j,image::geometry<2>(geo[i][0],geo[i][1]));
^
../src/image/ml/cnn.hpp:873:30: error: ‘v’ does not name a type
auto v = image::make_image((i == 0 ? in_buf : out_buf)+geo[i].plane_size()*j,image::geometry<2>(geo[i][0],geo[i][1]));
^
../src/image/ml/cnn.hpp:874:46: error: ‘v’ was not declared in this scope
image::normalize_abs(v);
^
../src/image/ml/cnn.hpp:876:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < Iv.size();++j)
^
../src/image/ml/cnn.hpp:894:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:910:87: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
image::draw(Is[i],I,image::geometry<2>(1,cur_height + (Is[i].height() < layer_height ? (layer_height- Is[i].height())/2: 0)));
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::add(const std::vector<std::basic_string<char> >&)’:
../src/image/ml/cnn.hpp:917:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& str: list)
^
../src/image/ml/cnn.hpp:917:19: warning: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
for(auto& str: list)
^
../src/image/ml/cnn.hpp:917:24: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& str: list)
^
../src/image/ml/cnn.hpp:918:20: warning: invalid conversion from ‘int’ to ‘image::ml::basic_layer*’ [-fpermissive]
add(str);
^
../src/image/ml/cnn.hpp:781:10: note: initializing argument 1 of ‘void image::ml::network::add(image::ml::basic_layer*)’
void add(basic_layer* new_layer)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::add(const string&)’:
../src/image/ml/cnn.hpp:924:13: error: ‘regex’ is not a member of ‘std’
std::regex reg("[|]");
^
../src/image/ml/cnn.hpp:925:13: error: ‘sregex_token_iterator’ is not a member of ‘std’
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:925:79: error: expected primary-expression before ‘,’ token
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:925:80: error: ‘last’ was not declared in this scope
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:926:46: error: ‘first’ was not declared in this scope
std::vector<std::string> list = {first, last};
^
../src/image/ml/cnn.hpp:926:57: error: in C++98 ‘list’ must be initialized by constructor, not by ‘{...}’
std::vector<std::string> list = {first, last};
^
../src/image/ml/cnn.hpp:926:57: error: could not convert ‘{<expression error>, last}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::basic_string<char> >’
../src/image/ml/cnn.hpp:934:9: error: ‘regex’ is not a member of ‘std’
std::regex reg(",");
^
../src/image/ml/cnn.hpp:935:9: error: ‘sregex_token_iterator’ is not a member of ‘std’
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:935:75: error: expected primary-expression before ‘,’ token
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:935:76: error: ‘last’ was not declared in this scope
std::sregex_token_iterator first{text.begin(), text.end(),reg, -1},last;
^
../src/image/ml/cnn.hpp:936:42: error: ‘first’ was not declared in this scope
std::vector<std::string> list = {first, last};
^
../src/image/ml/cnn.hpp:936:53: error: in C++98 ‘list’ must be initialized by constructor, not by ‘{...}’
std::vector<std::string> list = {first, last};
^
../src/image/ml/cnn.hpp:936:53: error: could not convert ‘{<expression error>, last}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::basic_string<char> >’
../src/image/ml/cnn.hpp:939:13: error: ‘regex’ is not a member of ‘std’
std::regex integer("(\\+|-)?[[:digit:]]+");
^
../src/image/ml/cnn.hpp:941:16: error: ‘regex_match’ is not a member of ‘std’
std::regex_match(list[0],integer) &&
^
../src/image/ml/cnn.hpp:941:41: error: ‘integer’ was not declared in this scope
std::regex_match(list[0],integer) &&
^
../src/image/ml/cnn.hpp:942:16: error: ‘regex_match’ is not a member of ‘std’
std::regex_match(list[1],integer) &&
^
../src/image/ml/cnn.hpp:943:16: error: ‘regex_match’ is not a member of ‘std’
std::regex_match(list[2],integer))
^
../src/image/ml/cnn.hpp:965:18: error: ‘activation_type’ is not a class or namespace
af = activation_type::tanh;
^
../src/image/ml/cnn.hpp:968:22: error: ‘activation_type’ is not a class or namespace
af = activation_type::sigmoid;
^
../src/image/ml/cnn.hpp:971:26: error: ‘activation_type’ is not a class or namespace
af = activation_type::relu;
^
../src/image/ml/cnn.hpp:974:30: error: ‘activation_type’ is not a class or namespace
af = activation_type::identity;
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::save_to_file(const char*)’:
../src/image/ml/cnn.hpp:1008:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:1013:20: error: ‘layers’ was not declared in this scope
if(i < layers.size())
^
../src/image/ml/cnn.hpp:1017:37: error: ‘activation_type’ is not a class or namespace
if(layers[i]->af == activation_type::tanh)
^
../src/image/ml/cnn.hpp:1019:37: error: ‘activation_type’ is not a class or namespace
if(layers[i]->af == activation_type::sigmoid)
^
../src/image/ml/cnn.hpp:1021:37: error: ‘activation_type’ is not a class or namespace
if(layers[i]->af == activation_type::relu)
^
../src/image/ml/cnn.hpp:1023:37: error: ‘activation_type’ is not a class or namespace
if(layers[i]->af == activation_type::identity)
^
../src/image/ml/cnn.hpp:1043:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1043:19: warning: ISO C++ forbids declaration of ‘layer’ with no type [-fpermissive]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1043:27: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1043:27: error: ‘layers’ was not declared in this scope
../src/image/ml/cnn.hpp:1044:22: error: base operand of ‘->’ is not a pointer
if(!layer->weight.empty())
^
../src/image/ml/cnn.hpp:1046:48: error: base operand of ‘->’ is not a pointer
file.write((const char*)&*layer->weight.begin(),layer->weight.size()*4);
^
../src/image/ml/cnn.hpp:1046:70: error: base operand of ‘->’ is not a pointer
file.write((const char*)&*layer->weight.begin(),layer->weight.size()*4);
^
../src/image/ml/cnn.hpp:1047:48: error: base operand of ‘->’ is not a pointer
file.write((const char*)&*layer->bias.begin(),layer->bias.size()*4);
^
../src/image/ml/cnn.hpp:1047:68: error: base operand of ‘->’ is not a pointer
file.write((const char*)&*layer->bias.begin(),layer->bias.size()*4);
^
../src/image/ml/cnn.hpp: In member function ‘bool image::ml::network::load_from_file(const char*)’:
../src/image/ml/cnn.hpp:1062:9: error: ‘layers’ was not declared in this scope
layers.clear();
^
../src/image/ml/cnn.hpp:1064:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1064:19: warning: ISO C++ forbids declaration of ‘layer’ with no type [-fpermissive]
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1064:27: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for(auto& layer : layers)
^
../src/image/ml/cnn.hpp:1065:22: error: base operand of ‘->’ is not a pointer
if(!layer->weight.empty())
^
../src/image/ml/cnn.hpp:1067:39: error: base operand of ‘->’ is not a pointer
in.read((char*)&*layer->weight.begin(),layer->weight.size()*4);
^
../src/image/ml/cnn.hpp:1067:61: error: base operand of ‘->’ is not a pointer
in.read((char*)&*layer->weight.begin(),layer->weight.size()*4);
^
../src/image/ml/cnn.hpp:1068:39: error: base operand of ‘->’ is not a pointer
in.read((char*)&*layer->bias.begin(),layer->bias.size()*4);
^
../src/image/ml/cnn.hpp:1068:59: error: base operand of ‘->’ is not a pointer
in.read((char*)&*layer->bias.begin(),layer->bias.size()*4);
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:1078:27: error: ‘layers’ was not declared in this scope
for(int k = 0;k < layers.size();++k)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::initialize_training()’:
../src/image/ml/cnn.hpp:1091:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto layer : layers)
^
../src/image/ml/cnn.hpp:1091:18: error: ‘layer’ does not name a type
for(auto layer : layers)
^
../src/image/ml/cnn.hpp:1093:9: error: expected ‘;’ before ‘int’
int thread_count = std::thread::hardware_concurrency();
^
../src/image/ml/cnn.hpp:1093:33: error: ‘std::thread’ has not been declared
int thread_count = std::thread::hardware_concurrency();
^
../src/image/ml/cnn.hpp:1094:37: error: expected ‘)’ before ‘;’ token
dweight.resize(thread_count);
^
../src/image/ml/cnn.hpp:1095:22: error: ‘thread_count’ was not declared in this scope
dbias.resize(thread_count);
^
../src/image/ml/cnn.hpp:1102:31: error: ‘layers’ was not declared in this scope
dweight[i].resize(layers.size());
^
../src/image/ml/cnn.hpp:1115:12: error: ‘layers’ was not declared in this scope
if(layers.back()->af == activation_type::tanh)
^
../src/image/ml/cnn.hpp:1115:33: error: ‘activation_type’ is not a class or namespace
if(layers.back()->af == activation_type::tanh)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::update_weights(float)’:
../src/image/ml/cnn.hpp:1136:17: error: ‘layers’ was not declared in this scope
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp: In lambda function:
../src/image/ml/cnn.hpp:1138:16: error: ‘layers’ is not captured
if(layers[j]->weight.empty())
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1140:35: error: ‘layers’ is not captured
std::vector<float> dw(layers[j]->weight.size());
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1141:35: error: ‘layers’ is not captured
std::vector<float> db(layers[j]->bias.size());
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1142:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0;k < dweight.size();++k)
^
../src/image/ml/cnn.hpp:1149:13: error: ‘layers’ is not captured
layers[j]->update(dw,db,learning_rate);
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1150:42: error: ‘layers’ is not captured
image::upper_lower_threshold(layers[j]->bias,-bias_cap,bias_cap);
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1151:42: error: ‘layers’ is not captured
image::upper_lower_threshold(layers[j]->weight,-weight_cap,weight_cap);
^
../src/image/ml/cnn.hpp:1136:50: note: the lambda has no capture-default
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp:1136:17: note: ‘<typeprefixerror>layers’ declared here
par_for(layers.size(),[this,learning_rate](int j)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::update_weights(float)’:
../src/image/ml/cnn.hpp:1152:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
../src/image/ml/cnn.hpp: In lambda function:
../src/image/ml/cnn.hpp:1174:25: error: ‘layers’ was not declared in this scope
for(int k = layers.size()-1;k >= 0;--k)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::train_a_batch(const data_type&, const label_id_type&, int, int, bool&)’:
../src/image/ml/cnn.hpp:1186:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
},std::thread::hardware_concurrency());
^
../src/image/ml/cnn.hpp:1186:16: error: ‘std::thread’ has not been declared
},std::thread::hardware_concurrency());
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<std::vector<float, std::allocator<float> > >&)’:
../src/image/ml/cnn.hpp:1249:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
../src/image/ml/cnn.hpp:1249:10: error: no matching function for call to ‘par_for(int, image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<std::vector<float, std::allocator<float> > >&)::<lambda(int)>)’
});
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:6:6: note: candidate: template<class T, class Func> void image::par_for(T, Func, int)
void par_for(T size, Func f, int thread_count = std::thread::hardware_concurrency())
^
../src/image/utility/multi_thread.hpp:6:6: note: template argument deduction/substitution failed:

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In substitution of ‘template<class T, class Func> void image::par_for(T, Func, int) [with T = int; Func = image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<std::vector<float, std::allocator<float> > >&)::<lambda(int)>]’:
../src/image/ml/cnn.hpp:1249:10: required from here
../src/image/ml/cnn.hpp:1249:10: error: template argument for ‘template<class T, class Func> void image::par_for(T, Func, int)’ uses local type ‘image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<std::vector<float, std::allocator<float> > >&)::<lambda(int)>’
});
^
../src/image/ml/cnn.hpp:1249:10: error: trying to instantiate ‘template<class T, class Func> void image::par_for(T, Func, int)’
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<int>&)’:
../src/image/ml/cnn.hpp:1258:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
../src/image/ml/cnn.hpp:1258:10: error: no matching function for call to ‘par_for(int, image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<int>&)::<lambda(int)>)’
});
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:6:6: note: candidate: template<class T, class Func> void image::par_for(T, Func, int)
void par_for(T size, Func f, int thread_count = std::thread::hardware_concurrency())
^
../src/image/utility/multi_thread.hpp:6:6: note: template argument deduction/substitution failed:

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In substitution of ‘template<class T, class Func> void image::par_for(T, Func, int) [with T = int; Func = image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<int>&)::<lambda(int)>]’:
../src/image/ml/cnn.hpp:1258:10: required from here
../src/image/ml/cnn.hpp:1258:10: error: template argument for ‘template<class T, class Func> void image::par_for(T, Func, int)’ uses local type ‘image::ml::network::test(const std::vector<std::vector<float, std::allocator<float> > >&, std::vector<int>&)::<lambda(int)>’
});
^
../src/image/ml/cnn.hpp:1258:10: error: trying to instantiate ‘template<class T, class Func> void image::par_for(T, Func, int)’
../src/image/ml/cnn.hpp: In function ‘void image::ml::iterate_cnn(const geo_type&, const geo_type&, std::vector<std::basic_string<char> >&, int)’:
../src/image/ml/cnn.hpp:1291:24: error: ‘tuple’ is not a member of ‘std’
std::multimap<int, std::tuple<image::geometry<3>,std::string,char> > candidates;
^
../src/image/ml/cnn.hpp:1291:24: error: ‘tuple’ is not a member of ‘std’
../src/image/ml/cnn.hpp:1291:70: error: template argument 2 is invalid
std::multimap<int, std::tuple<image::geometry<3>,std::string,char> > candidates;
^
../src/image/ml/cnn.hpp:1291:72: error: expected unqualified-id before ‘>’ token
std::multimap<int, std::tuple<image::geometry<3>,std::string,char> > candidates;
^
../src/image/ml/cnn.hpp:1292:5: error: ‘candidates’ was not declared in this scope
candidates.insert(std::make_pair(0,std::make_tuple(in_dim,std::string(),char(1))));
^
../src/image/ml/cnn.hpp:1292:40: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(0,std::make_tuple(in_dim,std::string(),char(1))));
^
../src/image/ml/cnn.hpp:1296:28: error: ‘get’ is not a member of ‘std’
geo_type cur_dim = std::get<0>(candidates.begin()->second);
^
../src/image/ml/cnn.hpp:1297:34: error: ‘get’ is not a member of ‘std’
std::string cur_string = std::get<1>(candidates.begin()->second);
^
../src/image/ml/cnn.hpp:1298:20: error: ‘get’ is not a member of ‘std’
char tag = std::get<2>(candidates.begin()->second);
^
../src/image/ml/cnn.hpp:1322:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"conv,relu,"+std::to_string(kernel)+"|",char(0))));
^
../src/image/ml/cnn.hpp:1322:112: error: ‘to_string’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"conv,relu,"+std::to_string(kernel)+"|",char(0))));
^
../src/image/ml/cnn.hpp:1323:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"conv,tanh,"+std::to_string(kernel)+"|",char(0))));
^
../src/image/ml/cnn.hpp:1323:112: error: ‘to_string’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"conv,tanh,"+std::to_string(kernel)+"|",char(0))));
^
../src/image/ml/cnn.hpp:1335:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"max_pooling,identity,"+std::to_string(pool_size)+"|",ch
^
../src/image/ml/cnn.hpp:1335:123: error: ‘to_string’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"max_pooling,identity,"+std::to_string(pool_size)+"|",ch
^
../src/image/ml/cnn.hpp:1349:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"full,tanh|",char(1))));
^
../src/image/ml/cnn.hpp:1350:64: error: ‘make_tuple’ is not a member of ‘std’
candidates.insert(std::make_pair(cur_cost+cost,std::make_tuple(in_dim2,cur_string+"full,relu|",char(1))));
^
In file included from ../src/image/image.hpp:86:0,
from ../src/main.cpp:10:
../src/image/vis/color_map.hpp: In member function ‘const image::vector<3>& image::color_map::operator[](unsigned int) const’:
../src/image/vis/color_map.hpp:58:89: warning: left operand of comma operator has no effect [-Wunused-value]
const image::vector<3,float>& operator[](unsigned int index) const{return color[255,index];}
^
In file included from ../src/main.cpp:15:0:
../src/program_option.hpp: In member function ‘void program_option::init(int, char**)’:
../src/program_option.hpp:16:13: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto pos = std::find(str.begin(),str.end(),'=');
^
../src/program_option.hpp:16:18: error: ‘pos’ does not name a type
auto pos = std::find(str.begin(),str.end(),'=');
^
../src/program_option.hpp:17:16: error: ‘pos’ was not declared in this scope
if(pos == str.end())
^
../src/program_option.hpp:19:47: error: ‘pos’ was not declared in this scope
options[std::string(str.begin()+2,pos)] = std::string(pos+1,str.end());
^
../src/program_option.hpp: In member function ‘std::string program_option::get(const char*)’:
../src/program_option.hpp:30:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto value = options.find(name);
^
../src/program_option.hpp:30:14: error: ‘value’ does not name a type
auto value = options.find(name);
^
../src/program_option.hpp:31:12: error: ‘value’ was not declared in this scope
if(value != options.end())
^
../src/program_option.hpp: At global scope:
../src/program_option.hpp:27:33: warning: unused parameter ‘name’ [-Wunused-parameter]
std::string get(const char* name)
^
../src/program_option.hpp: In member function ‘std::string program_option::get(const char*, const char*)’:
../src/program_option.hpp:39:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto value = options.find(name);
^
../src/program_option.hpp:39:14: error: ‘value’ does not name a type
auto value = options.find(name);
^
../src/program_option.hpp:40:12: error: ‘value’ was not declared in this scope
if(value != options.end())
^
../src/program_option.hpp: At global scope:
../src/program_option.hpp:36:33: warning: unused parameter ‘name’ [-Wunused-parameter]
std::string get(const char* name,const char* df_ptr)
^
../src/program_option.hpp: In member function ‘value_type program_option::get(const char*, value_type)’:
../src/program_option.hpp:49:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto value = options.find(name);
^
../src/program_option.hpp:49:14: error: ‘value’ does not name a type
auto value = options.find(name);
^
../src/program_option.hpp:50:12: error: ‘value’ was not declared in this scope
if(value != options.end())
^
In file included from ../src/libs/tracking/fib_data.hpp:9:0,
from ../src/libs/tracking/tract_model.hpp:6,
from ../src/libs/vbc/vbc_database.h:8,
from ../src/tracking/vbc_dialog.hpp:8,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/mapping/connectometry_db.hpp: At global scope:
../src/libs/mapping/connectometry_db.hpp:60:10: error: ‘mutex’ in namespace ‘std’ does not name a type
std::mutex lock_random;
^
../src/libs/mapping/connectometry_db.hpp:120:32: error: ‘std::shared_ptr’ has not been declared
void remove_old_index(std::shared_ptr<fib_data> handle);
^
../src/libs/mapping/connectometry_db.hpp:120:42: error: expected ‘,’ or ‘...’ before ‘<’ token
void remove_old_index(std::shared_ptr<fib_data> handle);
^
../src/libs/mapping/connectometry_db.hpp:121:23: error: ‘std::shared_ptr’ has not been declared
bool compare(std::shared_ptr<fib_data> handle,
^
../src/libs/mapping/connectometry_db.hpp:121:33: error: expected ‘,’ or ‘...’ before ‘<’ token
bool compare(std::shared_ptr<fib_data> handle,
^
../src/libs/mapping/connectometry_db.hpp:126:26: error: ‘std::shared_ptr’ has not been declared
void initialize(std::shared_ptr<fib_data> fib_file);
^
../src/libs/mapping/connectometry_db.hpp:126:36: error: expected ‘,’ or ‘...’ before ‘<’ token
void initialize(std::shared_ptr<fib_data> fib_file);
^
../src/libs/mapping/connectometry_db.hpp:127:40: error: ‘std::shared_ptr’ has not been declared
void add_mapping_for_tracking(std::shared_ptr<fib_data> handle,const char* t1,const char* t2);
^
../src/libs/mapping/connectometry_db.hpp:127:50: error: expected ‘,’ or ‘...’ before ‘<’ token
void add_mapping_for_tracking(std::shared_ptr<fib_data> handle,const char* t1,const char* t2);
^
../src/libs/mapping/connectometry_db.hpp:128:35: error: ‘std::shared_ptr’ has not been declared
bool individual_vs_atlas(std::shared_ptr<fib_data> handle,const char* file_name,unsigned char normalization);
^
../src/libs/mapping/connectometry_db.hpp:128:45: error: expected ‘,’ or ‘...’ before ‘<’ token
bool individual_vs_atlas(std::shared_ptr<fib_data> handle,const char* file_name,unsigned char normalization);
^
../src/libs/mapping/connectometry_db.hpp:129:32: error: ‘std::shared_ptr’ has not been declared
bool individual_vs_db(std::shared_ptr<fib_data> handle,const char* file_name);
^
../src/libs/mapping/connectometry_db.hpp:129:42: error: expected ‘,’ or ‘...’ before ‘<’ token
bool individual_vs_db(std::shared_ptr<fib_data> handle,const char* file_name);
^
../src/libs/mapping/connectometry_db.hpp:130:40: error: ‘std::shared_ptr’ has not been declared
bool individual_vs_individual(std::shared_ptr<fib_data> handle,
^
../src/libs/mapping/connectometry_db.hpp:130:50: error: expected ‘,’ or ‘...’ before ‘<’ token
bool individual_vs_individual(std::shared_ptr<fib_data> handle,
^
../src/libs/mapping/connectometry_db.hpp:135:25: error: variable or field ‘calculate_spm’ declared void
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:20: error: ‘shared_ptr’ is not a member of ‘std’
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:44: error: expected primary-expression before ‘>’ token
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:46: error: ‘handle’ was not declared in this scope
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:73: error: expected primary-expression before ‘&’ token
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:75: error: ‘data’ was not declared in this scope
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:90: error: expected primary-expression before ‘&’ token
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:135:92: error: ‘info’ was not declared in this scope
void calculate_spm(std::shared_ptr<fib_data> handle,connectometry_result& data,stat_model& info,
^
../src/libs/mapping/connectometry_db.hpp:136:20: error: expected primary-expression before ‘float’
float fiber_threshold,bool normalize_qa,bool& terminated);
^
../src/libs/mapping/connectometry_db.hpp:136:42: error: expected primary-expression before ‘bool’
float fiber_threshold,bool normalize_qa,bool& terminated);
^
../src/libs/mapping/connectometry_db.hpp:136:60: error: expected primary-expression before ‘bool’
float fiber_threshold,bool normalize_qa,bool& terminated);
^
In file included from ../src/libs/tracking/tract_model.hpp:6:0,
from ../src/libs/vbc/vbc_database.h:8,
from ../src/tracking/vbc_dialog.hpp:8,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/tracking/fib_data.hpp:177:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool is_running = false;
^
In file included from ../src/libs/vbc/vbc_database.h:8:0,
from ../src/tracking/vbc_dialog.hpp:8,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/tracking/tract_model.hpp:13:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<fib_data> handle;
^
../src/libs/tracking/tract_model.hpp:43:35: error: expected ‘)’ before ‘<’ token
TractModel(std::shared_ptr<fib_data> handle_);
^
../src/libs/tracking/tract_model.hpp: In member function ‘const TractModel& TractModel::operator=(const TractModel&)’:
../src/libs/tracking/tract_model.hpp:48:13: error: ‘handle’ was not declared in this scope
handle = rhs.handle;
^
../src/libs/tracking/tract_model.hpp:48:26: error: ‘const class TractModel’ has no member named ‘handle’
handle = rhs.handle;
^
In file included from ../src/tracking/vbc_dialog.hpp:8:0,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/vbc/vbc_database.h: At global scope:
../src/libs/vbc/vbc_database.h:20:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<fib_data> handle;
^
In file included from ../src/tracking/vbc_dialog.hpp:8:0,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/vbc/vbc_database.h:43:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/libs/vbc/vbc_database.h:43:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/libs/vbc/vbc_database.h:43:33: error: ‘future’ is not a member of ‘std’
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/libs/vbc/vbc_database.h:43:49: error: template argument 1 is invalid
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/libs/vbc/vbc_database.h:43:49: error: template argument 2 is invalid
../src/libs/vbc/vbc_database.h:43:51: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<std::future<void> > > threads;
^
../src/libs/vbc/vbc_database.h:55:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool terminated = false;
^
../src/libs/vbc/vbc_database.h:63:10: error: ‘mutex’ in namespace ‘std’ does not name a type
std::mutex lock_resampling,lock_greater_tracks,lock_lesser_tracks;
^
../src/libs/vbc/vbc_database.h:64:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<TractModel> > greater_tracks;
^
../src/libs/vbc/vbc_database.h:64:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/libs/vbc/vbc_database.h:64:43: error: template argument 1 is invalid
std::vector<std::shared_ptr<TractModel> > greater_tracks;
^
../src/libs/vbc/vbc_database.h:64:43: error: template argument 2 is invalid
../src/libs/vbc/vbc_database.h:64:45: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<TractModel> > greater_tracks;
^
../src/libs/vbc/vbc_database.h:65:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<TractModel> > lesser_tracks;
^
../src/libs/vbc/vbc_database.h:65:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/libs/vbc/vbc_database.h:65:43: error: template argument 1 is invalid
std::vector<std::shared_ptr<TractModel> > lesser_tracks;
^
../src/libs/vbc/vbc_database.h:65:43: error: template argument 2 is invalid
../src/libs/vbc/vbc_database.h:65:45: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<TractModel> > lesser_tracks;
^
../src/libs/vbc/vbc_database.h:66:17: error: ‘shared_ptr’ is not a member of ‘std’
std::vector<std::shared_ptr<connectometry_result> > spm_maps;
^
../src/libs/vbc/vbc_database.h:66:17: error: ‘shared_ptr’ is not a member of ‘std’
../src/libs/vbc/vbc_database.h:66:53: error: template argument 1 is invalid
std::vector<std::shared_ptr<connectometry_result> > spm_maps;
^
../src/libs/vbc/vbc_database.h:66:53: error: template argument 2 is invalid
../src/libs/vbc/vbc_database.h:66:55: error: expected unqualified-id before ‘>’ token
std::vector<std::shared_ptr<connectometry_result> > spm_maps;
^
In file included from ../src/tracking/vbc_dialog.hpp:8:0,
from ../src/cmd/cnt.cpp:3,
from ../src/main.cpp:16:
../src/libs/vbc/vbc_database.h: In member function ‘void vbc_database::calculate_spm(connectometry_result&, stat_model&, bool)’:
../src/libs/vbc/vbc_database.h:38:9: error: ‘::calculate_spm’ has not been declared
::calculate_spm(handle,data,info,fiber_threshold,nqa,terminated);
^
../src/libs/vbc/vbc_database.h:38:25: error: ‘handle’ was not declared in this scope
::calculate_spm(handle,data,info,fiber_threshold,nqa,terminated);
^
In file included from ../src/cmd/cnt.cpp:4:0,
from ../src/main.cpp:16:
./ui_vbc_dialog.h: In member function ‘void Ui_vbc_dialog::setupUi(QDialog*)’:
./ui_vbc_dialog.h:1185:25: error: ‘class QSpinBox’ has no member named ‘setDisplayIntegerBase’
track_trimming->setDisplayIntegerBase(5);
^
In file included from ../src/main.cpp:16:0:
../src/cmd/cnt.cpp: In function ‘int cnt()’:
../src/cmd/cnt.cpp:110:62: error: ‘thread’ is not a member of ‘std’
vbc->ui->multithread->setValue(po.get("thread_count",int(std::thread::hardware_concurrency())));
^
../src/cmd/cnt.cpp:110:62: note: suggested alternative:
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/main.cpp:10:
../src/image/utility/multi_thread.hpp:42:7: note: ‘image::thread’
class thread{
^
In file included from ../src/main.cpp:16:0:
../src/cmd/cnt.cpp:122:33: error: ‘std::auto_ptr<vbc_database>::element_type {aka class vbc_database}’ has no member named ‘threads’
for(int i = 0;i < vbc->vbc->threads.size();++i)
^
../src/cmd/cnt.cpp:123:19: error: ‘std::auto_ptr<vbc_database>::element_type {aka class vbc_database}’ has no member named ‘threads’
vbc->vbc->threads[i]->wait();
^
../src/main.cpp: In function ‘QStringList search_files(QString, QString)’:
../src/main.cpp:37:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int i = 0;i < dir_list.size();++i)
^
../src/main.cpp:41:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int index = 0;index < new_list.size();++index)
^
../src/main.cpp:44:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < file_list.size();++index)
^
In file included from ../src/image/io/io.hpp:7:0,
from ../src/image/image.hpp:47,
from ../src/main.cpp:10:
../src/image/io/dicom.hpp: In instantiation of ‘bool image::io::dicom::load_from_file(const char_type*) [with char_type = char]’:
../src/image/io/dicom.hpp:499:48: required from here
../src/image/io/dicom.hpp:568:47: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
auto& item = ge_map[ge.get_order()];
^
In file included from ../src/image/numerical/transformation.hpp:3:0,
from ../src/image/image.hpp:34,
from ../src/main.cpp:10:
../src/image/numerical/matrix.hpp: In instantiation of ‘void image::mat::eigen_decomposition_sym(input_iterator, output_iterator1, output_iterator2, const dym_type&) [with input_iterator = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; output_iterator1 = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; output_iterator2 = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; dym_type = image::dyndim]’:
../src/image/ml/em.hpp:33:108: required from here
../src/image/numerical/matrix.hpp:1796:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1805:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1827:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int l = 0,iter = 0;l < dim && iter < 30;++iter)
^
In file included from ../src/image/segmentation/otsu.hpp:4:0,
from ../src/image/segmentation/segmentation.hpp:6,
from ../src/image/image.hpp:32,
from ../src/main.cpp:10:
../src/image/numerical/numerical.hpp: In instantiation of ‘T image::uniform_dist<T>::operator()() [with T = float]’:
../src/image/ml/cnn.hpp:106:29: required from here
../src/image/numerical/numerical.hpp:27:19: error: ‘dst’ was not declared in this scope
return dst(gen);
^

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In instantiation of ‘static int image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]’:
../src/image/ml/cnn.hpp:246:61: required from here
../src/image/ml/cnn.hpp:253:32: error: no matching function for call to ‘max_element(std::vector<std::vector<int> >::const_iterator, std::vector<std::vector<int> >::const_iterator, image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]::<lambda(const value_t&, const value_t&)>)’
return std::max_element(c.begin(), c.end(), [](const value_t& left, const value_t& right)
^
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/qt4/QtCore/qglobal.h:68,
from /usr/include/qt4/QtCore/qnamespace.h:45,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtCore/qobject.h:47,
from /usr/include/qt4/QtCore/qcoreapplication.h:45,
from /usr/include/qt4/QtGui/qapplication.h:45,
from /usr/include/qt4/QtGui/QApplication:1,
from ../src/main.cpp:5:
/usr/include/c++/5/bits/stl_algo.h:5505:5: note: candidate: template<class _FIter> _FIter std::max_element(_FIter, _FIter)
max_element(_ForwardIterator __first, _ForwardIterator __last)
^
/usr/include/c++/5/bits/stl_algo.h:5505:5: note: template argument deduction/substitution failed:

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp:253:32: note:   candidate expects 2 arguments, 3 provided
return std::max_element(c.begin(), c.end(), [](const value_t& left, const value_t& right)
^
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/qt4/QtCore/qglobal.h:68,
from /usr/include/qt4/QtCore/qnamespace.h:45,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtCore/qobject.h:47,
from /usr/include/qt4/QtCore/qcoreapplication.h:45,
from /usr/include/qt4/QtGui/qapplication.h:45,
from /usr/include/qt4/QtGui/QApplication:1,
from ../src/main.cpp:5:
/usr/include/c++/5/bits/stl_algo.h:5529:5: note: candidate: template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare)
max_element(_ForwardIterator __first, _ForwardIterator __last,
^
/usr/include/c++/5/bits/stl_algo.h:5529:5: note: template argument deduction/substitution failed:

In file included from ../src/image/image.hpp:83:0,
from ../src/main.cpp:10:
../src/image/ml/cnn.hpp: In substitution of ‘template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<const std::vector<int>*, std::vector<std::vector<int> > >; _Compare = image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]::<lambda(const value_t&, const value_t&)>]’:
../src/image/ml/cnn.hpp:253:32: required from ‘static int image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]’
../src/image/ml/cnn.hpp:246:61: required from here
../src/image/ml/cnn.hpp:253:32: error: template argument for ‘template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare)’ uses local type ‘image::ml::partial_connected_layer::max_size(const Container&) [with Container = std::vector<std::vector<int> >]::<lambda(const value_t&, const value_t&)>’
return std::max_element(c.begin(), c.end(), [](const value_t& left, const value_t& right)
^
../src/image/ml/cnn.hpp:253:32: error: trying to instantiate ‘template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare)’
In file included from ../src/image/image.hpp:69:0,
from ../src/main.cpp:10:
../src/image/reg/reg.hpp: In instantiation of ‘image::reg::normalization<value_type>::normalization() [with value_type = double]’:
../src/libs/tracking/fib_data.hpp:142:33: required from here
../src/image/reg/reg.hpp:23:9: warning: ‘image::reg::normalization<double>::prog’ will be initialized after [-Wreorder]
int prog;
^
../src/image/reg/reg.hpp:19:10: warning: ‘bool image::reg::normalization<double>::has_T’ [-Wreorder]
bool has_T;
^
../src/image/reg/reg.hpp:28:5: warning: when initialized here [-Wreorder]
normalization(void):prog(0),has_T(false){}
^
In file included from ../src/main.cpp:15:0:
../src/program_option.hpp: In instantiation of ‘value_type program_option::get(const char*, value_type) [with value_type = int]’:
../src/cmd/cnt.cpp:28:33: required from here
../src/program_option.hpp:47:32: warning: unused parameter ‘name’ [-Wunused-parameter]
value_type get(const char* name,value_type df)
^
../src/program_option.hpp: In instantiation of ‘value_type program_option::get(const char*, value_type) [with value_type = float]’:
../src/cmd/cnt.cpp:92:73: required from here
../src/program_option.hpp:47:32: warning: unused parameter ‘name’ [-Wunused-parameter]
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/main.cpp:10:
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = double]’:
../src/image/numerical/basic_op.hpp:853:22: required from ‘void image::change_endian(datatype*, size_type) [with datatype = double; size_type = long unsigned int]’
../src/image/io/dicom.hpp:162:85: required from here
../src/image/numerical/basic_op.hpp:814:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (char i = 0; i < sizeof(type); ++i,--pdata)
^
../src/image/numerical/basic_op.hpp:815:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = *pdata;

^
make: *** [main.o] Error 1

Please let me know how to solve this error.

Thanks,
Po-Yu Kao

Fang-Cheng Yeh

unread,
Jun 20, 2016, 2:56:35 PM6/20/16
to dsi-s...@googlegroups.com
/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 is currently experimental, and must be enabled with the
-std=c++11 or -std=gnu++11 compiler options.

Reply all
Reply to author
Forward
0 new messages