linking problems with Python C API

Discussion in 'Python' started by Jeffrey Holle, Jan 28, 2004.

  1. I am working on a Linux system using gcc v3.3 and python v2.3.2
    I have a problem linking a cpp program to a shared library that uses the
    Python C API.
    With just referencing this shared library, I get unresolved references like:
    PySequence_DelSlice
    PyNumber_InPlaceXor
    PyInt_FromLong
    _PyObject_New
    This is just a sample, there are actually 130 of similarly named functions.

    The only other library that I have tried,
    /usr/local/lib/python2.3/config/libpython2.3.a, causes more trouble, to
    the point that makes me believe this is a misdirection.

    Can anybody tell me what library I should be linking to?
     
    Jeffrey Holle, Jan 28, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shlomo Anglister
    Replies:
    1
    Views:
    409
    Default User
    Aug 2, 2004
  2. Venky
    Replies:
    1
    Views:
    760
    Eric Sosman
    Oct 10, 2003
  3. Praveen, Tayal (IE10)
    Replies:
    0
    Views:
    378
    Praveen, Tayal (IE10)
    Mar 17, 2005
  4. John123

    Profiling API or Membership API

    John123, Oct 20, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    375
    John123
    Oct 20, 2006
  5. Varun Tewari
    Replies:
    2
    Views:
    225
    Varun Tewari
    May 15, 2013
Loading...

Share This Page