Skip to content

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

@Chi-Iroh

Description

@Chi-Iroh
#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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions