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.cx x:(.text+0x2ae0 ):
undefined reference to `__imp___
Py_NoneStruct'
example_wrap.o: example_wrap.cx x:(.text+0x2b97 ):
undefined reference to `_PyDict_
SetItemString'
example_wrap.o: example_wrap.cx x:(.text+0x2df0 ):
undefined reference to `_Py_Init
Module4'
example_wrap.o: example_wrap.cx x:(.text+0x2e06 ):
undefined reference to `_PyCObje
ct_FromVoidPtr'
example_wrap.o: example_wrap.cx x:(.text+0x2e2f ):
undefined reference to `_PyModul
e_AddObject'
example_wrap.o: example_wrap.cx x:(.text+0x2ece ):
undefined reference to `_Py_Init
Module4'
example_wrap.o: example_wrap.cx x:(.text+0x2edc ):
undefined reference to `_PyModul
e_GetDict'
example_wrap.o: example_wrap.cx x:(.text+0x3054 ):
undefined reference to `__imp__P
yExc_TypeError'
example_wrap.o: example_wrap.cx x:(.text+0x305e ):
undefined reference to `_PyErr_F
ormat'
example_wrap.o: example_wrap.cx x:(.text+0x306d ):
undefined reference to `__imp__P
yExc_TypeError'
example_wrap.o: example_wrap.cx x:(.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