468,170 Members | 1,982 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,170 developers. It's quick & easy.

Installing/Using SWIG for python again

>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
Aug 6 '05 #1
0 909

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Carl Waldbieser | last post: by
reply views Thread by Helmut Zeisel | last post: by
9 posts views Thread by timothy.williams | last post: by
reply views Thread by Jerry He | last post: by
1 post views Thread by Java and Swing | last post: by
1 post views Thread by cody314 | last post: by
reply views Thread by Basha J P M | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by kamranasdasdas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.