I have an embedded system and you want to use boost on this system, but you need to disable the exception because I don't want to pay the cost of the exception.
The enhancement was provided by one user.hpp and the custom macro macro option BOOST_NO_EXCEPTIONS and BOOST_NO_EXCEPTION_STD_NAMESPACE , but the enhancement :: shared_ptr cannot be compiled (more precisely, cannot be connected) if these two macros are defined.
shared_ptr_boost.cpp:(.text._ZN5boost6detail12shared_countC2IiEEPT_[_ZN5boost6detail12shared_countC5IiEEPT_]+0x7a): undefined reference to `boost::throw_exception(std::exception const&)'
collect2: error: ld returned 1 exit status
why does boost give macro parameters, but does not promise to compile with these parameters?
source
share