Pybind11 for C++ code with mixins classes #4811
                  
                    
                      ramanuj1729
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    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.
-
Consider the files given below:
repeat.h File
main.cpp (I have embedded the python in C++ and shared the Name object)
embed.cpp (In this file I have exposed the c++ classes to python via pybind11)
Here I don't know How do I expose
printHelloWordFunction in embed.cpp so in python I can call it usingName class objecti.e.,ned.printHelloWord(). Please note that, I am able to callprint()function.embed.py
How to expose printHelloWord() in embed.cpp so that I can called it using Name class object shed to python.
Beta Was this translation helpful? Give feedback.
All reactions