From: Teto <mat...@gm...> - 2011-06-15 17:40:09
|
On Mon, Jun 13, 2011 at 6:54 PM, Johan Hake <joh...@gm...> wrote: > On Sunday June 12 2011 11:41:42 Teto wrote: > > I dunno why but I've touched some things and I' ve been able to create > > the shared library. > > > > However when launching my test.py > > > > ====================== > > File "test.py", line 3, in <module> > > import pypbc > > File "/home/teto/pfe/pypbc.py", line 80, in <module> > > class __mpz_struct(_object): > > File "/home/teto/pfe/pypbc.py", line 86, in __mpz_struct > > __swig_setmethods__["_mp_alloc"] = _pypbc.__mpz_struct__mp_alloc_set > > AttributeError: 'module' object has no attribute > > '_mpz_struct__mpz_struct__mp_alloc_set' > > ====================== > > > > Here is the result of the command " nm _pypbc.so |grep > > __mpz_struct__mp_alloc_set": > > 0000000000018b09 t _wrap___mpz_struct__mp_alloc_set > > > > Btw, when doing "nm _pypbc.so" I have some undefined symbols, should > > they all be defined ? Here are some of them > > U pbc_realloc > > U pbc_set_memory_functions > > U pbc_strdup > > U printf > > U strncpy > > U strstr > > on the contrary some are correctly defined: > > 0000000000017fb6 t pbc_param_clear > > > > > > Any idea ? > > Is libpbc.so (or what it is called) included in your link path? On Linux > that > is the LD_LIBRARY_PATH. > > Johan > > I do but I've given up (My deadline being rather soon). I guess I was too greedy to try bo wrap a whole library for a first attempt. I may use swig later for smaller projetcs as it seems quite powerful . Thx for the help anyway. |