Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding Python on a linux box

Status
Not open for further replies.

askrius

ISP
Dec 1, 2004
2
US
Hello.

I have a slack 10 box trying with python 2.3 installed on it. I am trying to embed python in a C application. The problem is that when I inherit the python header file (Python.h) I must refer to it by absolute path (#include "/usr/include/python2.3/Python.h") and then on linking it tells me that the function calls are undefined (calls to Py_Initialize(), etc).

Any advice on this problem? I am sure the fix is simple...

thanks
 
Are you specifying the python libraries with a -L /path/to/libs on the gcc command line?
 
Doh! That explains ALOT! Thanks for the advice.

jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top