Call C++ in Python Posted on 2026-03-17 Edited on 2022-04-08 In programming language , cross-language 1.ctypesimilar as in Python_call_C.mdadd 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.Pythonmore powerful and complicated