22 #ifndef INCLUDED_GR_UHD_COMMON_H
23 #define INCLUDED_GR_UHD_COMMON_H
25 #include <uhd/version.hpp>
26 #include <boost/format.hpp>
30 #ifdef UHD_VERSION_ABI_STRING
31 if (std::string(UHD_VERSION_ABI_STRING) == uhd::get_abi_string())
return;
32 throw std::runtime_error(str(boost::format(
33 "\nGR-UHD detected ABI compatibility mismatch with UHD library.\n"
34 "GR-UHD was build against ABI: %s,\n"
35 "but UHD library reports ABI: %s\n"
36 "Suggestion: install an ABI compatible version of UHD,\n"
37 "or rebuild GR-UHD component against this ABI version.\n"
38 ) % UHD_VERSION_ABI_STRING % uhd::get_abi_string()));