diff options
Diffstat (limited to 'apps/examples/nsh/nsh_main.c')
-rw-r--r-- | apps/examples/nsh/nsh_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/examples/nsh/nsh_main.c b/apps/examples/nsh/nsh_main.c index 5d302e397..1d1592b4d 100644 --- a/apps/examples/nsh/nsh_main.c +++ b/apps/examples/nsh/nsh_main.c @@ -45,6 +45,8 @@ #include <sched.h> #include <errno.h> +#include <nuttx/arch.h> + #include <apps/nsh.h> /**************************************************************************** @@ -84,6 +86,12 @@ int user_start(int argc, char *argv[]) int exitval = 0; int ret; + /* Call all C++ static constructors */ + +#if defined(CONFIG_HAVE_CXX) && defined(CONFIG_HAVE_CXXINITIALIZE) + up_cxxinitialize(); +#endif + /* Initialize the NSH library */ nsh_initialize(); |