-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string interpreted as [u64 ; 4usize] #1379
Comments
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. |
I am having the same issue but having trouble reproducing in a small case. I think rust bingen replace is not picking up std::string because of the namespace/include structure somehow. |
After running into this issue myself, I have added a reduced example of it as an integration test in #1418. In this particular case, it is due to a |
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
The text was updated successfully, but these errors were encountered: