Hi Flavio,
I followed your tip of comparing with the nuttx standard building steps and
it did get me further.
I saw that there are some startup objects (nuttx-export/startup) that I did
not add in the linking phase.
There are none for the stm32 export.
I'm still getting errors but I'll investigat
Hello!
Could anyone get the C++ CMake HelloWorld example working for the simulator?
I'm using the sim:libcxxtest config but am getting the following error:
nuttx-export/include/libcxx/cstdlib:154:9: error: ‘::at_quick_exit’ has not
been declared
154 | using ::at_quick_exit;
Thanks,
Nuno
Hello Nuno,
It is better to post here the cmake files and the compilation execution.
Now looking at your first email, it seems that the function
'at_quick_exit' cannot be found by the linker.
You can look at NuttX code (app and nuttx) and see where this function
is and who is complaining. For a
Yes, it does. It generates the nuttx-export.zip. Then I set cmake to:
include_directories:
nuttx-export/include
nuttx-export/include/libcxx
nuttx-export/arch/chip
target_link_libraries:
libs under nuttx-export/libs
And set the compiler and linker flags at nuttx-export/scripts/Make.defs
Nuno
E
Hi Nuno,
So when you run 'make export' the build runs correctly, right?
Best regards,
Flavio
Em qui., 11 de nov. de 2021 às 21:14, Nuno Barcellos
escreveu:
>
> Hey Flavio :)
>
> Yes, I can build and run the helloxx example when it is inside the
> nuttx/apps tree (I've been using sim:libcxxtest
Hey Flavio :)
Yes, I can build and run the helloxx example when it is inside the
nuttx/apps tree (I've been using sim:libcxxtest configuration).
I'm having problems when trying to build it outside the nuttx tree by using
the nuttx-as-library (make export).
I followed the C++ CMake example in the
Hello Nuno,
Before starting working with cmake, it is important that the C++
configuration in nuttx is building and running.
Did you get this part working?
Best regards,
Flavio
Em qui., 11 de nov. de 2021 19:17, Nuno Barcellos
escreveu:
> Hello!
>
> Could anyone get the C++ CMake HelloWorld
Hello!
Could anyone get the C++ CMake HelloWorld example working for the simulator?
I'm using the sim:libcxxtest config but am getting the following error:
nuttx-export/include/libcxx/cstdlib:154:9: error: ‘::at_quick_exit’ has not
been declared
154 | using ::at_quick_exit;
Thanks,
Nuno