Installing/Using SWIG for python again

Jerry He rebound1618 at yahoo.com
Sat Aug 6 13:03:52 CEST 2005


>From Jerry He:
>For the third one however
>    ld -shared example.o example_wrap.o -o
_example.so

>It gave me a long list of errors listed at the end of
>this email.

Ok, I managed to get rid of the weird Tcl_Append, and
strlen error messages, but right now I'm left with
undefined references to what seems like Python-C API
objects. 

Does anyone know how to handle these undefined
references?

example_wrap.o:example_wrap.cxx:(.text+0x2ae0):
undefined reference to `__imp___
Py_NoneStruct'
example_wrap.o:example_wrap.cxx:(.text+0x2b97):
undefined reference to `_PyDict_
SetItemString'
example_wrap.o:example_wrap.cxx:(.text+0x2df0):
undefined reference to `_Py_Init
Module4'
example_wrap.o:example_wrap.cxx:(.text+0x2e06):
undefined reference to `_PyCObje
ct_FromVoidPtr'
example_wrap.o:example_wrap.cxx:(.text+0x2e2f):
undefined reference to `_PyModul
e_AddObject'
example_wrap.o:example_wrap.cxx:(.text+0x2ece):
undefined reference to `_Py_Init
Module4'
example_wrap.o:example_wrap.cxx:(.text+0x2edc):
undefined reference to `_PyModul
e_GetDict'
example_wrap.o:example_wrap.cxx:(.text+0x3054):
undefined reference to `__imp__P
yExc_TypeError'
example_wrap.o:example_wrap.cxx:(.text+0x305e):
undefined reference to `_PyErr_F
ormat'
example_wrap.o:example_wrap.cxx:(.text+0x306d):
undefined reference to `__imp__P
yExc_TypeError'
example_wrap.o:example_wrap.cxx:(.text+0x3077):
undefined reference to `_PyErr_F
ormat'
collect2: ld returned 1 exit status

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Python-list mailing list