I have c++ object files
For example :
example1.o and example2.o
- Is it possible to create a python wrapper class using SWIG?
- If yes how can I create using SWIG
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create wrapper without having the C++ source file but you need the header file because the interface file which you will define for Python wrapper generation, needs the C++ header files.
Using interface file wrapper can be generated by the following sample commands:
The example.o is the object file which you already have. You can then start a Python interpreter and type
import exampleto verify that it is working.