Open JF002 opened 3 years ago
Please test attacthment, this code work well on my platform. sdk_app_helloworld.zip
For the dso_handle issue, just make a global: void* __dso_handle = nullptr; For related issues, see the (excellent) https://alex-robenko.gitbook.io/bare_metal_cpp/compiler_output/static and related chapters.
Hi!
I'm trying to port a C++ application to the BL602 using this SDK. This app use some parts of the STL like std::unique_ptr and std::array, for example. All my attempts to build and run my app failed, either at build/link time or at runtime.
I tried to build a much simpler application based on sdk_app_helloworld. Here's a first example that actually works:
MyCxxClass.h
App.cpp:
main.cpp:
Now, let's try with a slightly modified App.cpp:
This time, the link fails:
I can of course define
vAssertCalled
but I still have this issue with__dso_handle
which is, if I understand correctly, a part of the C++ stdlib.Is there anything I can do to build a C++ application based on this SDK?
Thanks!