Comments (2)
Thanks for the test case!
bindgen is giving us:
#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
pub mod root {
#[allow(unused_imports)]
use self::super::root;
#[repr(C)]
pub struct A__bindgen_vtable(::std::os::raw::c_void);
#[repr(C)]
#[cpp_semantics(layout(8, 8, false))]
pub struct A {
pub vtable_: *const A__bindgen_vtable,
}
extern "C" {
#[cpp_semantics(pure_virtual)]
#[cpp_semantics(bindgen_virtual)]
#[cpp_semantics(original_name("f"))]
#[link_name = "\u{1}__ZN1A1fEv"]
pub fn A_f(this: *mut root::A) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[cpp_semantics(layout(8, 8, false))]
pub struct B {
pub __bindgen_padding_0: u64,
}
}
}
i.e. bindgen is not telling us that B
inherits from A
, so therefore we make poor life choices around what to do with B
.
It may be that this was because we make an invalid assumption about what output to expect from bindgen, I'll look into it in due course. Thanks again for the test case.
from autocxx.
May be the same as #832
from autocxx.
Related Issues (20)
- Unable to generate bindings for std::array<unsigned char, 6> HOT 1
- Question: How to "export" (i.e. make `pub`) modules generated by `generate_ns!()`? HOT 1
- Usage of system frameworks (macOS)? HOT 3
- cannot bind rvalue reference of type .. to lvalue of type .. / pointer argument requires that the function be marked unsafe
- Calling protected functions from a Rust subclass
- Generated Binding fails to compile due to due to `redefinition as different kind of symbol` Error HOT 1
- New method of POD-Types not creating a POD rust type
- Unable to find CXX header for C++ HOT 1
- Unable to Call Base Class Functions When Base is a Template Class in autocxx
- autocxx-bindgen upgrade suggestions
- Cannot instantiate C++ `std::vec` of a simple C++ type due to lack of `cxx` `VectorElement` trait implementation. HOT 3
- Workarounds for Pointer to another pointer?
- Do all required include paths have to be included in Builder::new()
- Couldn’t generate binding for opencv cv::OutputArray HOT 1
- Compilation fails using char*
- unsupported type error on char typedef
- `generate_pod!` ignores/can't find `extern_cpp_type!` defined types
- Missing lifetime specifier on functions returning concrete templates HOT 1
- Generating Rust bindings which include a type named String doesn't compile
- Linker error with static method in class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autocxx.