Skip to contentSkip to conversation

Problem with atomic_32.h when included from C++ source

Xenomai-help Rob Wheeler 2 participants 2 messages Jul 21, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

I'm seeing an issue when trying to compile a C++ application that includes native/task.h. It eventually winds up including atomic_32.h which has a function xnarch_atomic_cmpxchg which takes a function argument named 'new'. This conflicts with the C++ compiler's reserved keyword and generates compiler warnings.

-R

#1 lore raw
Quoted 8 lines · Rob Wheeler

Hello,

I'm seeing an issue when trying to compile a C++ application that includes native/task.h. It eventually winds up including atomic_32.h which has a function xnarch_atomic_cmpxchg which takes a function argument named 'new'. This conflicts with the C++ compiler's reserved keyword and generates compiler warnings.

Fixed in trunk. Thanks.

Quoted 9 lines

-R

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.