It is also possible to embed Python in a C++ program; how this is done exactly 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 with C++.