Issues with incomplete type from C library #5019
Unanswered
nilsfriess
asked this question in
Q&A
Replies: 1 comment
-
Did you find a workaround for this problem? I'm migrating a rather large project from Boost::Python to pybind11 bindings. The difficulty in working with incomplete types is really the only remaining sticking point for me. I've got about 50 free functions that each rely on one or more incomplete types. The ideas here (#2770) all seem unworkable for one reason or another. Thanks for any insight. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently trying to write Python bindings for a C++ Library that uses PETSc. Here's a very basic example that demonstrates the issue I have
When I'm trying to compile this I get a compile error, the important part is at the end of this part:
The problem is that
Mat
is a typedef of a forward declaration.Is there any way to still make this work?
Beta Was this translation helpful? Give feedback.
All reactions