ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.33k stars 1.4k forks source link

c++17 standard compiling "error: ISO C++17 does not allow dynamic exception specifications" #601

Closed TioeAre closed 11 months ago

TioeAre commented 1 year ago

in my ubuntu20.04, ros noetic, cmake 3.23.2 with g++11. comes out the error

Errors     << aslam_time:make /home/tioeare/packages/kalibr_workspace/logs/aslam_time/build.make.000.log
/home/username/packages/kalibr_workspace/src/kalibr/aslam_cv/aslam_time/src/time.cpp:84:25: error: ISO C++17 does not allow dynamic exception specifications
   84 |                         throw (NoHighPerformanceTimersException)
      |                         ^~~~~
make[2]: *** [CMakeFiles/aslam_time.dir/build.make:76: CMakeFiles/aslam_time.dir/src/time.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:295: CMakeFiles/aslam_time.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I commented out the line, and passed compiling it seems something wrong with c++17, does anyone meet the same problem like me?

limshoonkit commented 1 year ago

Hi,

I also encounter something similar. Like what you did I just commented out the line.

asimonov commented 1 year ago

same here