Installing/Using SWIG for python again

J

Jerry He

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top