Le lundi 13 juin 2022 à 14:39 +0000, Russell Johnson via Xenomai a écrit : > 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) > > /opt/evl/include/evl/compiler.h:64:36: error: '__fallthrough__' was > not > declared in this scope > > #define fallthrough __attribute__((__fallthrough__)) > > ^~~~~~~~~~~~~~~
This line looks wrong. The correct way to use the fallthrough attribute (at least with gcc) is __attribute__((fallthrough)) , so that will conflict with any usage (not only boost's). It should probably be fixed by: #define __fallthrough __attribute__((fallthrough)) Regards, Julien