xiaoxiang781216 commented on pull request #1341:
URL: https://github.com/apache/incubator-nuttx/pull/1341#issuecomment-652173833
@patacongo to indicate nxtask_startup isn't used in KERNEL build, I add the
guard like this:
```
#ifndef CONFIG_BUILD_KERNEL
void nxtask_startup(main_t e
xiaoxiang781216 commented on pull request #1341:
URL: https://github.com/apache/incubator-nuttx/pull/1341#issuecomment-652168334
> It is an incorrect design to call C++ constructors or destructors from the
OS in kernel mode (PROTECTED and KERNEL builds) or with interrupts disabled.
Calling