Re: C++ user apps
Kim Bøndergaard
For application code it seems to be OK. You just have to enable it properly in your config:
Some of the configs I've been using:
CONFIG_STD_CPP11=y / CONFIG_STD_CPP14=y
CONFIG_NEWLIB_LIBC=y
CONFIG_CPLUSPLUS=y
CONFIG_LIB_CPLUSPLUS=y
CONFIG_RTTI=y
Beware of some of the pitfalls with e.g. exceptions.
Kim Bøndergaard
Prevas A/S Team Manager / Systems Architect Hedeager 3, DK-8200 Aarhus N Phone +45 3315 9090
From: devel@... <devel@...> on behalf of Simon Glass via lists.zephyrproject.org <sjg=chromium.org@...>
Sent: Monday, August 24, 2020 17:17 To: devel <devel@...> Subject: [Zephyr-devel] C++ user apps Hi,
Is there any guidance about using C++ in Zephyr? Is it common / recommended? Does anyone have a link to a previous discussion? Regards, Simon
|
|