Embedding Python in MaxMSP
Charlie DeTar
chazen at gmail.com
Wed Nov 24 22:20:57 EST 2004
Oh, in case anyone out there cares or had the same problem at some
point: I was able to fix this by adding "-lpython2.3" to the ld command
list. Probably something to do with "Python.h" not corresponding to
"libpython.a"? Maybe there ought to be links
(libpython.a->libpython2.3.a), so that embedded applications don't
depend on particular versions of python?
cheers,
Charlie
Charlie DeTar wrote:
[snip]
> /usr/bin/gcc-3.3 -o "/Users/tc1/Sources/MaxMSP-SDK/Mach-O
> Development/nyptho/build/nyptho.mxo/Contents/MacOS/nyptho"
> "-L/Users/tc1/Sources/MaxMSP-SDK/Mach-O Development/nyptho/build"
> "-L/sw/lib/python2.3/config/" "-F/Users/tc1/Sources/MaxMSP-SDK/Mach-O
> Development/nyptho/build" "-F/Library/Frameworks" -filelist
> "/Users/tc1/Sources/MaxMSP-SDK/Mach-O
> Development/nyptho/build/nyptho.build/nyptho.build/Objects-normal/LinkFileList"
> "-framework" "Carbon" "-framework" "MaxAPI" "-arch" "ppc" "-bundle"
> "-ldl"
> ld: Undefined symbols:
> _PyEval_InitThreads
> _PyRun_SimpleFile
> _PyRun_SimpleString
> _PySys_SetArgv
> _Py_Finalize
> _Py_Initialize
[snip]
More information about the Python-list
mailing list