I have a class that includes both <evl/heap.h> and some boost headers. Whenever I go to compile it, I get an error that looks like it has to do with the definition of "fallthrough" in <evl/compile.h> conflicting with the definition of "fallthrough" in Boost. It compiles fine if there is no Boost header in the class. I use boost throughout my entire app, so I need to figure how to get both of these libraries to play nice with each other. Any ideas? ( I am using gcc 8.3 and boost 1.70.0)
If you cannot see the image above, here is the error from the console: /home/rtlogic/projects/t4-sfhm-test/vendors/boost-1.70.0/software/include/bo ost/format/parsing.hpp: In function 'bool boost::io::detail::parse_printf_directive(Iter&, const Iter&, boost::io::detail::format_item<Ch, Tr, Alloc>*, const Facet&, std::size_t, unsigned char)': /opt/evl/include/evl/compiler.h:64:36: error: '__fallthrough__' was not declared in this scope #define fallthrough __attribute__((__fallthrough__)) ^~~~~~~~~~~~~~~ /home/rtlogic/projects/t4-sfhm-test/vendors/boost-1.70.0/software/include/bo ost/config/compiler/gcc.hpp:309:44: note: in expansion of macro 'fallthrough' # define BOOST_FALLTHROUGH __attribute__((fallthrough)) ^~~~~~~~~~~ /home/rtlogic/projects/t4-sfhm-test/vendors/boost-1.70.0/software/include/bo ost/format/parsing.hpp:325:17: note: in expansion of macro 'BOOST_FALLTHROUGH' BOOST_FALLTHROUGH; ^~~~~~~~~~~~~~~~~ /opt/evl/include/evl/compiler.h:64:36: note: suggested alternative: 'fallthrough' #define fallthrough __attribute__((__fallthrough__)) ____________ Russell Johnson Software Development Engineer, Kratos Space Kratos Defense & Security Solutions, Inc. 12515 Academy Ridge View Colorado Springs, Colorado 80921 Main: 719.472.3323x1192 Direct: 719.884.6392 <mailto:russell.john...@kratosdefense.com> russell.john...@kratosdefense.com <http://www.kratosdefense.com/> www.kratosdefense.com -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 115340 bytes Desc: not available URL: <http://xenomai.org/pipermail/xenomai/attachments/20220613/f9ee151d/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 2582 bytes Desc: not available URL: <http://xenomai.org/pipermail/xenomai/attachments/20220613/f9ee151d/attachment.jpg> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6759 bytes Desc: not available URL: <http://xenomai.org/pipermail/xenomai/attachments/20220613/f9ee151d/attachment.bin>