Newly Blog


  • Home

  • Tags

  • Categories

  • Archives

  • Search

Call C++ in Python

Posted on 2022-06-16 | In programming language , cross-language

1.ctype

similar as in Python_call_C.md
add extern “C” before each function, otherwise an error ‘undefined symbol’ will be thrown.

However, something might go wrong on terms with complicated Class.

2.Use Boost.Python

more powerful and complicated

# Python # C++
Call C in Python
HTML+CSS
  • Table of Contents
  • Overview
Li Niu

Li Niu

237 posts
18 categories
112 tags
Homepage GitHub Linkedin
  1. 1. 1.ctype
  2. 2. 2.Use Boost.Python
© 2025 Li Niu
Powered by Hexo
|
Theme — NexT.Mist v5.1.4