Closed
Description
A struct with methods gets processed nicely by bindgen
, autocxx
and cxx
.
A class with methods results in compile warnings because:
bindgen
outputs a Rust structautocxx
passes struct-like information tocxx
cxx
generates C++-side bindings which include a forward declaration for thisclass
... but calls it astruct
. Therefore the compiler whines. Apparently on Windows this would actually be a bug due to ABI mismatch between structs and classes. (In the title of the issue I call this a 'build failure' but I'm not sure).
Currently the information output from bindgen
doesn't tell us whether something is a class or a struct. We will need a small bindgen change to add a bit more information to the outputted code. I have a hacky branch for this; if anyone wants to clean it up let me know and I'll upload the hacks somewhere.
Metadata
Metadata
Assignees
Labels
No labels