Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

borisnico

comunicating python and C/C++

This topic is 5739 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m having a lot of trouble finding a short and simple turorial or document on how to comunicate a python script with a c/c++ program. I need to call python functions whithin C and vice-versa. It would be nice too if i could use Python objects in C++ and vice-versa. I would appreciate any help (URLs, etc..)

Share this post


Link to post
Share on other sites
Advertisement
If Python has a CORBA library, you can use that. The PortableServer allows communication between different vendor implementations and languages.

TAO (www.cs.wustl.edu/~schmidt/TAO.html) is a good C++ library for CORBA.

I know Java has a CORBA library, and I've used it to link C++ with Java programs.

EDIT: Although it's not exactly "short and simple" to learn/use...

[edited by - cgoat on March 24, 2003 4:25:09 PM]

Share this post


Link to post
Share on other sites
Thanks for the replies.
I downloaded boost and i''m currently reading the documentation.

Are there other options?

I was looking for a smaller library to start with. A library that will just let me call a python function whithin C.

Something like the "libtcl" but with python.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!