Problem embedding C++ code

Alex Alex at p98.f112.n480.z2.fidonet.org
Fri Jul 2 14:38:38 EDT 1999


From: Alex <alex at somewhere.round.here>


I had this problem a while back.  It went away when we made everything
that gets included a shared library.  That included the C++ library, I
think...  it was on linux, and I think we had to include libg++.so
instead of libg++.a.  

HTH, and good luck.
Alex.

> CC -c -KPIC link-wrap.c -I/home/mdeshpan/SW/include/python1.5
> "link-wrap.c", line 13: Warning: String literal converted to char* in
> formal argument 1 in call to Py_BuildValue(char*, ...).
> 1 Warning(s) detected.
> CC -G link-wrap.o -lapic -lpthread -o link.so
> daffy:~/Swig$python
> Python 1.5.2 (#3, Jun 29 1999, 11:17:23) [C] on sunos5
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import link
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> ImportError: ld.so.1: python: fatal: relocation error: file
> ./libapic.so: symbol _ex_rethrow_q: referenced symbol not found

This is a gratuitous signature, included so that the news server won't
complain that I've got more included text than new text.  Snappy, huh?




More information about the Python-list mailing list