Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
425 views
in Importing C++ Programs in Python by (49.1k points)
closed by

Name some commonly used Interfaces for importing C++ files on python?

1 Answer

+1 vote
by (54.8k points)
selected by
 
Best answer

Importing C++ Files in Pythona:

Importing C++ program in a Python program is called wrapping up of C++ in Python. Wrapping or creating Python interfaces for C++ programs are done in many ways.

The commonly used interfaces are

1. Python-C-API (API-Application Programming Interface for interfacing with C programs)

2. Ctypes (for interfacing with c programs)

3. SWIG (Simplified Wrapper Interface Generator.Both C and C++)

4. Cython (Cython is both a Python-like language for writing C-extensions)

5. Boost. Python (a framework for interfacing Python and C++)

6. MinGW (Minimalist GNU for Windows)

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

...