rpng / open_vins

An open source platform for visual-inertial navigation research.
https://docs.openvins.com
GNU General Public License v3.0
2.17k stars 636 forks source link

There is something wrong with compiling in `Debug` mode #274

Closed zzhh00 closed 2 years ago

zzhh00 commented 2 years ago

When I change the Release to Debug mode in the CMakeLists.txt, the error occurs as below :

In file included from /usr/include/c++/9/cassert:44, from /usr/include/eigen3/Eigen/Core:261, from /usr/include/eigen3/Eigen/Dense:1, from /usr/include/eigen3/Eigen/Eigen:1, from /home/hz/hz/SLAM/Visual-Slam/Filter-based-slam/MSCKF/ov_ws/src/open_vins/ov_core/src/utils/sensor_data.h:25, from /home/hz/hz/SLAM/Visual-Slam/Filter-based-slam/MSCKF/ov_ws/src/open_vins/ov_msckf/src/state/Propagator.h:31, from /home/hz/hz/SLAM/Visual-Slam/Filter-based-slam/MSCKF/ov_ws/src/open_vins/ov_msckf/src/state/Propagator.cpp:22: /usr/include/assert.h:81:13: error: declaration of ‘void __assert(const char*, const char*, int) throw ()’ has a different exception specifier 81 | extern void __assert (const char *__assertion, const char *__file, int __line) | ^~~~~~~~

Can you please help me solve this problem? Thank you very much!

goldbattle commented 2 years ago

Can you try the PR here: https://github.com/rpng/open_vins/pull/272

On Tue, Sep 6, 2022 at 11:19 AM zzhh00 @.***> wrote:

When I change the Release to Debug mode in the CMakeLists.txt, the error occurs as below :

In file included from /usr/include/c++/9/cassert:44, from /usr/include/eigen3/Eigen/Core:261, from /usr/include/eigen3/Eigen/Dense:1, from /usr/include/eigen3/Eigen/Eigen:1, from /home/hz/hz/SLAM/Visual-Slam/Filter-based-slam/MSCKF/ov_ws/src/open_vins/ov_core/src/utils/sensor_data.h:25, from /home/hz/hz/SLAM/Visual-Slam/Filter-based-slam/MSCKF/ov_ws/src/open_vins/ov_msckf/src/state/Propagator.h:31, from /home/hz/hz/SLAM/Visual-Slam/Filter-based-slam/MSCKF/ov_ws/src/open_vins/ov_msckf/src/state/Propagator.cpp:22: /usr/include/assert.h:81:13: error: declaration of ‘void assert(const char, const char, int) throw ()’ has a different exception specifier 81 | extern void assert (const char __assertion, const char file, int line) | ^~~~ Can you please help me solve this problem? Thank you very much!

— Reply to this email directly, view it on GitHub https://github.com/rpng/open_vins/issues/274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ6TYROHORXL3E3VFZE4JLV45OIJANCNFSM6AAAAAAQF54H3U . You are receiving this because you are subscribed to this thread.Message ID: @.***>

goldbattle commented 2 years ago

Feel free to reopen if this is still an issue.