error while trying make
Hello there! I tried to to build the project and make threw an error here
[ 98%] Built target half [ 98%] Building CXX object E57Converter/CMakeFiles/E57Converter.dir/Common.cpp.o /home/daniel/Documents/E57Converter/E57Converter/Common.cpp: In function ‘Eigen::Vector3d GetAzimuth0DegreeVector(unsigned int)’: /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:67:54: error: no matching function for call to ‘std::exception::exception(const char [21])’ default: throw std::exception("type is not support."); break; ^ In file included from /usr/include/c++/7/exception:38:0, from /usr/include/c++/7/new:40, from /usr/include/c++/7/ext/new_allocator.h:33, from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33, from /usr/include/c++/7/bits/allocator.h:46, from /usr/include/c++/7/string:41, from /home/daniel/Documents/E57Converter/E57Converter/Common.h:3, from /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:1: /usr/include/c++/7/bits/exception.h:63:5: note: candidate: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/7/bits/exception.h:60:9: note: candidate: constexpr std::exception::exception(const std::exception&) class exception ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:60:9: note: no known conversion for argument 1 from ‘const char [21]’ to ‘const std::exception&’ /home/daniel/Documents/E57Converter/E57Converter/Common.cpp: In function ‘Eigen::Vector3d GetAzimuth90DegreeVector(unsigned int)’: /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:82:54: error: no matching function for call to ‘std::exception::exception(const char [21])’ default: throw std::exception("type is not support."); break; ^ In file included from /usr/include/c++/7/exception:38:0, from /usr/include/c++/7/new:40, from /usr/include/c++/7/ext/new_allocator.h:33, from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33, from /usr/include/c++/7/bits/allocator.h:46, from /usr/include/c++/7/string:41, from /home/daniel/Documents/E57Converter/E57Converter/Common.h:3, from /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:1: /usr/include/c++/7/bits/exception.h:63:5: note: candidate: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/7/bits/exception.h:60:9: note: candidate: constexpr std::exception::exception(const std::exception&) class exception ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:60:9: note: no known conversion for argument 1 from ‘const char [21]’ to ‘const std::exception&’ /home/daniel/Documents/E57Converter/E57Converter/Common.cpp: In function ‘Eigen::Vector3d RAEToXYZ(RAEMode, const Vector3d&)’: /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:311:55: error: no matching function for call to ‘std::exception::exception(const char [30])’ throw std::exception("ElevationMode is not support."); ^ In file included from /usr/include/c++/7/exception:38:0, from /usr/include/c++/7/new:40, from /usr/include/c++/7/ext/new_allocator.h:33, from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33, from /usr/include/c++/7/bits/allocator.h:46, from /usr/include/c++/7/string:41, from /home/daniel/Documents/E57Converter/E57Converter/Common.h:3, from /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:1: /usr/include/c++/7/bits/exception.h:63:5: note: candidate: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/7/bits/exception.h:60:9: note: candidate: constexpr std::exception::exception(const std::exception&) class exception ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:60:9: note: no known conversion for argument 1 from ‘const char [30]’ to ‘const std::exception&’ /home/daniel/Documents/E57Converter/E57Converter/Common.cpp: In function ‘Eigen::Vector3d XYZToRAE(RAEMode, const Vector3d&)’: /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:341:55: error: no matching function for call to ‘std::exception::exception(const char [30])’ throw std::exception("ElevationMode is not support."); ^ In file included from /usr/include/c++/7/exception:38:0, from /usr/include/c++/7/new:40, from /usr/include/c++/7/ext/new_allocator.h:33, from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33, from /usr/include/c++/7/bits/allocator.h:46, from /usr/include/c++/7/string:41, from /home/daniel/Documents/E57Converter/E57Converter/Common.h:3, from /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:1: /usr/include/c++/7/bits/exception.h:63:5: note: candidate: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/7/bits/exception.h:60:9: note: candidate: constexpr std::exception::exception(const std::exception&) class exception ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:60:9: note: no known conversion for argument 1 from ‘const char [30]’ to ‘const std::exception&’ /home/daniel/Documents/E57Converter/E57Converter/Common.cpp: In function ‘Eigen::Vector2d RAEToUV(RAEMode, const Vector3d&)’: /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:362:49: error: no matching function for call to ‘std::exception::exception(const char [24])’ throw std::exception("RAEMode is not support."); ^ In file included from /usr/include/c++/7/exception:38:0, from /usr/include/c++/7/new:40, from /usr/include/c++/7/ext/new_allocator.h:33, from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33, from /usr/include/c++/7/bits/allocator.h:46, from /usr/include/c++/7/string:41, from /home/daniel/Documents/E57Converter/E57Converter/Common.h:3, from /home/daniel/Documents/E57Converter/E57Converter/Common.cpp:1: /usr/include/c++/7/bits/exception.h:63:5: note: candidate: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/7/bits/exception.h:60:9: note: candidate: constexpr std::exception::exception(const std::exception&) class exception ^~~~~~~~~ /usr/include/c++/7/bits/exception.h:60:9: note: no known conversion for argument 1 from ‘const char [24]’ to ‘const std::exception&’ E57Converter/CMakeFiles/E57Converter.dir/build.make:62: recipe for target 'E57Converter/CMakeFiles/E57Converter.dir/Common.cpp.o' failed make[2]: *** [E57Converter/CMakeFiles/E57Converter.dir/Common.cpp.o] Error 1 CMakeFiles/Makefile2:2643: recipe for target 'E57Converter/CMakeFiles/E57Converter.dir/all' failed make[1]: *** [E57Converter/CMakeFiles/E57Converter.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
kind regards, Daniel