I came across looser throw specifier error and overriding error while compiling caffe related code. I do not know what these two kind of error is and why they pop out together and how to fix them. This is my error log:
/usr/local/include/boost/system/error_code.hpp:233:21: error: looser throw specifier for ‘virtual const char* boost::system::error_category::std_category::name() const’
virtual const char * name() const BOOST_NOEXCEPT^/usr/include/c++/4.9/system_error:81:21: error: overriding ‘virtual const char* std::error_category::name() const noexcept’
name() const noexcept = 0;
^
And this is the compile script:
#!/bin/sh
source=deep_image_analogy/source
nvcc $source/*.cpp $source/*.cu -o demo \
-std=c++11 \
-I./include \
-L./build/lib \
-lopencv_core \
-lopencv_highgui \
-lopencv_imgproc \
-lboost_system \
-lcublas \
-lcaffe \
-lglog
Thanks!