2020-07-23 15:19:35 +02:00
|
|
|
|
# Testing / `cxxtest` C++ STL
|
2019-01-27 14:38:27 +01:00
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
|
This is a test of the C++ standard library. At present a port of the uClibc++
|
|
|
|
|
C++ library is available. Due to licensing issues, the uClibc++ C++ library is
|
|
|
|
|
not included in the NuttX source tree by default, but must be installed (see the
|
|
|
|
|
`README.txt` file in the uClibc++ download package for installation).
|
2019-01-27 14:38:27 +01:00
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
|
The uClibc++ test includes simple test of:
|
2019-01-27 14:38:27 +01:00
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
|
- iostreams,
|
|
|
|
|
- STL,
|
|
|
|
|
- RTTI, and
|
|
|
|
|
- Exceptions
|
2019-01-27 14:38:27 +01:00
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
|
## Example Configuration Options
|
2019-01-27 14:38:27 +01:00
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
|
- `CONFIG_TESTING_CXXTEST=y` – Enables the example
|
2019-01-27 14:38:27 +01:00
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
|
## Other Required Configuration Settings
|
2019-01-27 14:38:27 +01:00
|
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
|
Other NuttX setting that are required include:
|
|
|
|
|
|
|
|
|
|
- `CONFIG_HAVE_CXX=y`
|
|
|
|
|
- `CONFIG_HAVE_CXXINITIALIZE=y`
|
|
|
|
|
- `CONFIG_UCLIBCXX=y` or `CONFIG_LIBCXX=y`
|
|
|
|
|
|
|
|
|
|
Additional `uClibc++/libcxx` settings may be required in your build environment.
|