954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

embedding python

Im trying to call python functions from C code, and i followed a sample from here
http://docs.python.org/release/2.3.2/ext/pure-embedding.html
I also have the correct include file directries, library directries, and linked the python32.lib (im using python 32) however the error was that python/C APIs such as PyString_FromString, PyInt_FromLong, PyInt_AsLong are undefined (error in the debugger)

this is strange because im also using other APIs, but they're all fine...

whats the problem here??

petergeng
Newbie Poster
1 post since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

Did you check this part of the documentation ? http://docs.python.org/release/2.3.2/ext/link-reqs.html

Gribouillis
Posting Maven
Moderator
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: