Issues with incomplete type from C library #5019
              
                Unanswered
              
          
                  
                    
                      nilsfriess
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 2 replies
-
| 
         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.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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
Matis a typedef of a forward declaration.Is there any way to still make this work?
Beta Was this translation helpful? Give feedback.
All reactions