Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Python (http://www.programmingforums.org/forum43.html)
-   -   Python weds C++ (http://www.programmingforums.org/showthread.php?t=12372)

Dietrich Jan 14th, 2007 12:58 PM

Python weds C++
 
I am looking for good information or a tutorial on the use of Python as a glue language with C and C++. Does anyone have experience with that sort of advanced thing?

niteice Jan 14th, 2007 3:48 PM

Boost.Python and SWIG are usually used to automate embedding Python in an application. Both have very good documentation.

But if you're feeling rather masochistic, you can always use the raw API. :)

titaniumdecoy Jan 14th, 2007 4:25 PM

You'll find multiple ways to combine Python and other languages here.

Game_Ender Jan 14th, 2007 5:42 PM

That is a good sight linked above. It all depends on what you want to do. If you want to embed Python in you C++ program, I recommend Boost.Python over Swig. You should also check out Py++(make sure to get the SVN version) which allows you to generate Boost.Python wrappers for you C++ code just like Swig does. I use this in one of my projects and it works wonderfully.

If you just need to optimize a small method weave looks like a very promising method but I have never used it myself. The only issue I see with weave is that you need to have a complier present to start you program.


All times are GMT -5. The time now is 5:56 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC