How to build px4 firmware including C++ STL?

Hi everyone,

I’m trying to configure and build the px4 firmware (px4_fmu-v5_default) including the C++ Standard Template Library (memory, vector, deque, cmath, …) to be used in a specific module.

I’ve seen that there is the option to install the uClibc++ library and configure NuttX to include it (NuttX-uClibc/README.txt at master · rohiniku/NuttX-uClibc · GitHub), but it should also be possible to use the libstdc++ which is part of GCC. I didn’t find much documentation on this topic (integration of C++ standard libraries with px4 firmware), so I’m asking if someone has encountered the same problem (and possibly solved it) and which is the best way to go.

Any help would be appreciated.

Regards,
-Giulio

1 Like

This may be in your interest:

Example of including C++ standard library functionality.

Otherwise, I haven’t found way to include C++ standard library for now :person_shrugging: