![]() Add Python executable to PATH environment variable. I used version "Python 2.7.3 Windows x86 MSI Installer (Windows binary - does not include source)" in this example. Without the use of multiple threads, it is very time consuming (takes some 2-3 hours to install). I will show how to parallize the compilation below which makes computation very fast ( ranging from 13 mins when 8 threads are used to 40 mins when 4 threads are used simultaneously). This tutorials uses boost from source, you may find pre-compiled binaries somewhere.This tutorial was tested on both platforms. Even if you use 32 bit Python and 32 bit Visual Studio C++ compiler, it will work fine. Even if you are using 圆4 bit architecture, you don't have to install 64 bit Python and 64 bit compiler for Visual studio.This installs all the libs and headers supplied with boost, not just the ones that are necessary for boost.python.This tutorial is independent of SIGVerse simulator and anyone who wants to embed a python interpreter inside C++ source code using Visual Studio can use this. If you questions after reading this page: Please feel free to email at aim of this tutorial is to guide you with the steps required to embed python code into c++ code using Microsoft Visual Studio 2008. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |