Re: [External] - Re: compile conflict with Boost

2022-06-15 Thread Philippe Gerum via Xenomai
Russell Johnson writes: > [[S/MIME Signed Part:Undecided]] > Apologies. Here you go. > > From 452e8b2ca8ecd53571a6b1f5d8b9ab23cd67f99d Mon Sep 17 00:00:00 2001 > From: Russell Johnson > Date: Tue, 14 Jun 2022 08:10:14 -0600 > Subject: [PATCH] fixing conflict with C++ [[fallthough]], and maybe

RE: [External] - Re: compile conflict with Boost

2022-06-14 Thread Russell Johnson via Xenomai
Apologies. Here you go. From 452e8b2ca8ecd53571a6b1f5d8b9ab23cd67f99d Mon Sep 17 00:00:00 2001 From: Russell Johnson Date: Tue, 14 Jun 2022 08:10:14 -0600 Subject: [PATCH] fixing conflict with C++ [[fallthough]], and maybe at some point in the future with the C2X standard Signed-off-by:

Re: compile conflict with Boost

2022-06-14 Thread Philippe Gerum via Xenomai
Jan Kiszka writes: > On 14.06.22 16:18, Russell Johnson via Xenomai wrote: >> From 452e8b2ca8ecd53571a6b1f5d8b9ab23cd67f99d Mon Sep 17 00:00:00 2001 >> From: Russell Johnson >> Date: Tue, 14 Jun 2022 08:10:14 -0600 >> Subject: [PATCH] fixing conflict with C++ [[fallthough]], and maybe at some

Re: compile conflict with Boost

2022-06-14 Thread Jan Kiszka via Xenomai
On 14.06.22 16:18, Russell Johnson via Xenomai wrote: > From 452e8b2ca8ecd53571a6b1f5d8b9ab23cd67f99d Mon Sep 17 00:00:00 2001 > From: Russell Johnson > Date: Tue, 14 Jun 2022 08:10:14 -0600 > Subject: [PATCH] fixing conflict with C++ [[fallthough]], and maybe at some > point in the future with

Re: compile conflict with Boost

2022-06-14 Thread Philippe Gerum via Xenomai
Russell Johnson writes: > [[S/MIME Signed Part:Undecided]] > From 452e8b2ca8ecd53571a6b1f5d8b9ab23cd67f99d Mon Sep 17 00:00:00 2001 > From: Russell Johnson > Date: Tue, 14 Jun 2022 08:10:14 -0600 > Subject: [PATCH] fixing conflict with C++ [[fallthough]], and maybe at some > point in the

Re: compile conflict with Boost

2022-06-14 Thread Russell Johnson via Xenomai
From 452e8b2ca8ecd53571a6b1f5d8b9ab23cd67f99d Mon Sep 17 00:00:00 2001 From: Russell Johnson Date: Tue, 14 Jun 2022 08:10:14 -0600 Subject: [PATCH] fixing conflict with C++ [[fallthough]], and maybe at some point in the future with the C2X standard --- benchmarks/hectic.c| 10 +-

Re: [External] - Re: compile conflict with Boost

2022-06-14 Thread Philippe Gerum via Xenomai
Russell Johnson writes: > [[S/MIME Signed Part:Undecided]] > This is what I have been using. I have tested it and it seems to work fine. > > Thanks, > > Russell > > diff --git a/benchmarks/hectic.c b/benchmarks/hectic.c > index 6b6b3b5..886f7d2 100644 > --- a/benchmarks/hectic.c > +++

RE: [External] - Re: compile conflict with Boost

2022-06-14 Thread Russell Johnson via Xenomai
This is what I have been using. I have tested it and it seems to work fine. Thanks, Russell diff --git a/benchmarks/hectic.c b/benchmarks/hectic.c index 6b6b3b5..886f7d2 100644 --- a/benchmarks/hectic.c +++ b/benchmarks/hectic.c @@ -336,7 +336,7 @@ static void *sleeper_switcher(void *cookie)

Re: compile conflict with Boost

2022-06-14 Thread Philippe Gerum via Xenomai
Julien Blanc writes: > Le mardi 14 juin 2022 à 09:44 +, Bezdeka, Florian a écrit : >> >> Based on the kernel's fallthrough, introducing evl_fallthrough would >> avoid all kinds of conflicts (IMHO): >> >> #ifndev evl_fallthrough >> #if __has_attribute(__fallthrough__) >> # define

Re: compile conflict with Boost

2022-06-14 Thread Julien Blanc via Xenomai
Le mardi 14 juin 2022 à 09:44 +, Bezdeka, Florian a écrit : > > Based on the kernel's fallthrough, introducing evl_fallthrough would > avoid all kinds of conflicts (IMHO): > > #ifndev evl_fallthrough > #if __has_attribute(__fallthrough__) > # define evl_fallthrough

Re: compile conflict with Boost

2022-06-14 Thread Bezdeka, Florian via Xenomai
On Tue, 2022-06-14 at 11:01 +0200, Philippe Gerum via Xenomai wrote: > Julien Blanc writes: > > > Le mardi 14 juin 2022 à 10:04 +0200, Philippe Gerum a écrit : > > > Julien Blanc < > > > julien.bl...@sprinte.eu > > > > writes: > > > > > > > Le mardi 14 juin 2022 à 08:54 +0200, Philippe Gerum a

Re: compile conflict with Boost

2022-06-14 Thread Philippe Gerum via Xenomai
Julien Blanc writes: > Le mardi 14 juin 2022 à 10:04 +0200, Philippe Gerum a écrit : >> Julien Blanc < >> julien.bl...@sprinte.eu >> > writes: >> >> > Le mardi 14 juin 2022 à 08:54 +0200, Philippe Gerum a écrit : >> > > Julien Blanc via Xenomai >> > > > #define __fallthrough

Re: compile conflict with Boost

2022-06-14 Thread Bezdeka, Florian via Xenomai
On Tue, 2022-06-14 at 08:29 +, Julien Blanc via Xenomai wrote: > Le mardi 14 juin 2022 à 10:04 +0200, Philippe Gerum a écrit : > > Julien Blanc < > > julien.bl...@sprinte.eu > > > writes: > > > > > Le mardi 14 juin 2022 à 08:54 +0200, Philippe Gerum a écrit : > > > > Julien Blanc via Xenomai

Re: compile conflict with Boost

2022-06-14 Thread Julien Blanc via Xenomai
Le mardi 14 juin 2022 à 10:04 +0200, Philippe Gerum a écrit : > Julien Blanc < > julien.bl...@sprinte.eu > > writes: > > > Le mardi 14 juin 2022 à 08:54 +0200, Philippe Gerum a écrit : > > > Julien Blanc via Xenomai > > > > #define __fallthrough __attribute__((fallthrough)) > > > > > > > > >

Re: compile conflict with Boost

2022-06-14 Thread Philippe Gerum via Xenomai
Julien Blanc writes: > Le mardi 14 juin 2022 à 08:54 +0200, Philippe Gerum a écrit : >> Julien Blanc via Xenomai >> > >> > #define __fallthrough __attribute__((fallthrough)) >> > >> >> 6.39. attribute syntax >> https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html#Attribute-Syntax

Re: compile conflict with Boost

2022-06-14 Thread Julien Blanc via Xenomai
Le mardi 14 juin 2022 à 08:54 +0200, Philippe Gerum a écrit : > Julien Blanc via Xenomai > > > > #define __fallthrough __attribute__((fallthrough)) > > > > 6.39. attribute syntax > https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html#Attribute-Syntax > Not sure what you mean with

Re: compile conflict with Boost

2022-06-14 Thread Philippe Gerum via Xenomai
Julien Blanc via Xenomai writes: > Le lundi 13 juin 2022 à 14:39 +, 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)

RE: [External] - Re: compile conflict with Boost

2022-06-13 Thread Russell Johnson via Xenomai
I agree with your proposed fix. -Original Message- From: Julien Blanc Sent: Monday, June 13, 2022 9:17 AM To: Russell Johnson ; xenomai@xenomai.org Subject: [External] - Re: compile conflict with Boost CAUTION: This email originated from outside of the organization. Do not click

Re: compile conflict with Boost

2022-06-13 Thread Julien Blanc via Xenomai
Le lundi 13 juin 2022 à 14:39 +, 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:

compile conflict with Boost

2022-06-13 Thread Russell Johnson via Xenomai
I have a class that includes both 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 conflicting with the definition of "fallthrough" in Boost. It compiles fine if there is no Boost header in the class. I use