swig-python import error

2008-03-07 Thread abarun22
Hi I am facing a problem while loading a SWIG generated shared module from python. The development is under HP-UX 32b platform. I use gcc version 4.0.2 to build the shared module. This is how i try to build the module. # Compilation GCC="$GCC -march=1.1" $GCC -v -c -fpic ${ETUDE}.c ${ETUDE}_wrap.

How to access nested structural members from python

2007-11-28 Thread abarun22
Hi I would like to know if there are any ways to access the members of a nested structure inside python. I use SWIG as interface for C. My structure comes as follows. struct SA{ int nb_dep, max_dep SB *b } struct SB{ int id[10], node, kg; double dep[3]; } I have written a C helper function like t

Re: C pointer representation in python

2007-11-26 Thread abarun22
HI Thanks for the suggestion and i believe that seems a good idea. But because of some work related constraints i have to use SWIG for the moment. Regards Arun Terry Reedy wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | Hi > | I am new to SWIG and python. I have a proble

C pointer representation in python

2007-11-26 Thread abarun22
Hi I am new to SWIG and python. I have a problem while trying to call a C function from Python using SWIG as an interface. The function is defined as follows. void* myfunc(TfichierDLR *fichier, char *nom, char *type, char *txt, char *classe, TicThemeDLR *icTheme, int **num, int *ier) The last two

swig-python -> shared (vs) static libraries

2007-10-29 Thread abarun22
HI I am new to SWIG & Python and right now i am in the process of wrapping some "C" functionalities present in a static library for python. I do have my C file "name.c" which just contains some helper functions. I tried to link my object files (e.g name.o & name_wrap.o) with the static libraries (w

swig-python -> shared (vs) static libraries

2007-10-29 Thread abarun22
HI I am new to SWIG & Python and right now i am in the process of wrapping some "C" functionalities present in a static library for python. I do have my C file "name.c" which just contains some helper functions. I tried to link my object files (e.g name.o & name_wrap.o) with the static libraries (w

SWIG-PYTHON -> Problem in header file inclusion

2007-10-20 Thread abarun22
Hi I am facing a problem while including a C header file in the SWIG interface file. However the problem does not occur when i directly copy the contents of header file in the same place. My interface file read as follows. /* interface file dep.i */ %module dep %{ #include "dep.h" %} %inline %{

SWIG-PYTHON -> Problem in header file inclusion

2007-10-19 Thread abarun22
Hi I am facing a problem while including a C header file in the SWIG interface file. However the problem does not occur when i directly copy the contents of header file in the same place. My interface file read as follows. /* interface file dep.i */ %module dep %{ #include "dep.h" %} %inline %{