libnds
libnds copied to clipboard
Can C++'s std::stacktrace be used with NDS ?
#include <stacktrace>
int main() {
std::stacktrace::current();
while (true) {}
}
arm-none-eabi-g++ -std=c++23 -lstdc++exp ...
arm-none-eabi-g++ --version # (devkitARM release 66) 15.1.0
As I build with catnip, it's :
target_link_libraries(my_game stdc++exp)
I open the .nds in NO$GBA, and it crashes immediately. Commenting std::stacktrace::current() is ok. I saw libstdc++exp.a in devkitARM/arm-none-eabi/lib, so I assumed it was compatible.
Did I do something wrong ?