compiling python and calling it from C/C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Russ

    compiling python and calling it from C/C++

    Is it possible to compile python code into a library (on unix), then
    link to it and call it from C/C++? If so, where can I learn how.
    Thanks.

  • Diez B. Roggisch

    #2
    Re: compiling python and calling it from C/C++

    Russ schrieb:
    Is it possible to compile python code into a library (on unix), then
    link to it and call it from C/C++? If so, where can I learn how.
    You can't compile python, but what you can do is create a
    library-wrapping around it using elmer which will make it C-callable.



    diez

    Comment

    • Szabolcs  Nagy

      #3
      Re: compiling python and calling it from C/C++


      Russ wrote:
      Is it possible to compile python code into a library (on unix), then
      link to it and call it from C/C++? If so, where can I learn how.
      Thanks.
      not really but you may want to look into these:


      Download Shedskin for free. This project is no longer hosted here. Please follow the link below.


      Comment

      • Russ

        #4
        Re: compiling python and calling it from C/C++


        Diez B. Roggisch wrote:
        Russ schrieb:
        Is it possible to compile python code into a library (on unix), then
        link to it and call it from C/C++? If so, where can I learn how.
        >
        You can't compile python, but what you can do is create a
        library-wrapping around it using elmer which will make it C-callable.
        >
        http://elmer.sourceforge.net/
        This looks promising. Thanks.

        Comment

        Working...