Yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/embeddingInCplusplus.html

From ZCubes Wiki
Jump to navigation Jump to search


4.1 Embedding Python in C++

It is also possible to embed Python in a C++ program; precisely how this is done will depend on the details of the C++ system used; in general you will need to write the main program in C++, and use the C++ compiler to compile and link your program. There is no need to recompile Python itself using C++.