Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > linking problems with Python C API

Reply
Thread Tools

linking problems with Python C API

 
 
Jeffrey Holle
Guest
Posts: n/a
 
      01-28-2004
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?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.Net Profiler API in 64 bit windows -FunctionMapper callback API =?Utf-8?B?TGVv?= Windows 64bit 0 09-05-2007 06:10 PM
Profiling API or Membership API John123 ASP .Net 0 10-20-2006 03:18 PM
Calling the C API from Python and Python program from same C API -bidirectional Praveen, Tayal (IE10) Python 0 03-17-2005 06:33 AM
What API replaces the unlock API that existed in gcc 2.9.3? Shlomo Anglister C++ 1 08-02-2004 06:50 PM
linking error (using interbase 6.0 API library) Venky C Programming 1 10-10-2003 09:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57