libnds icon indicating copy to clipboard operation
libnds copied to clipboard

Can C++'s std::stacktrace be used with NDS ?

Open Chi-Iroh opened this issue 3 months ago • 0 comments

#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 ?

Chi-Iroh avatar Oct 01 '25 22:10 Chi-Iroh