Open madushan1000 opened 4 months ago
Thanks - I'm afraid I'm realistically not going to get a chance to look into your reproduction steps here. You might be able to use these instructions to automatically reduce the test case, though it doesn't always work great.
Hi, thank you. I tried those instructions at the time and it failed to run. I think this is some sort of a preprocessor issue failing to include all the cpp standard library headers. I decided to use ghidra bindings someone else wrote so I don't have the setup to reproduce it anymore unfortunately.
Describe the bug I'm trying to generate some bindings to ghidra sleigh library. In loadimage.hh file, the relevant section looks like this.
autocxx interprets
string
as[u64 ; 4usize]
.output of
RUST_BACKTRACE=1 RUST_LOG=autocxx_engine=info cargo build
To Reproduce I tried to get a minimal example for the bug, but couldn't, so the long way,
Install sleigh library(on Ubuntu 23.10) following this guide.
build.rs
main.rs
Expected behavior I think string should be interpreted as CxxString?
Additional context I can get it to generate correct code if include a typedef for string