diff options
Diffstat (limited to 'NxWidgets/UnitTests/nxwm')
-rw-r--r-- | NxWidgets/UnitTests/nxwm/main.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/NxWidgets/UnitTests/nxwm/main.cxx b/NxWidgets/UnitTests/nxwm/main.cxx index dffa7b600..b0792c1f4 100644 --- a/NxWidgets/UnitTests/nxwm/main.cxx +++ b/NxWidgets/UnitTests/nxwm/main.cxx @@ -38,6 +38,7 @@ ///////////////////////////////////////////////////////////////////////////// #include <nuttx/config.h> +#include <nuttx/arch.h> #include "ctaskbar.hxx" #include "cstartwindow.hxx" @@ -90,6 +91,12 @@ extern "C" int MAIN_NAME(int argc, char *argv[]); int MAIN_NAME(int argc, char *argv[]) { + // Call all C++ static constructors + +#if defined(CONFIG_HAVE_CXX) && defined(CONFIG_HAVE_CXXINITIALIZE) + up_cxxinitialize(); +#endif + // Create an instance of the Task Bar. // // The general sequence for initializing the task bar is: |