On Tuesday 24 May 2005 7:47 pm, Huaicai Mo wrote:
> Hi Phil,
>
> I am sending you the files: word.h, word.c, word.sip, configure.py,
> mytest.c and clib_makefile(the make file used to create the C library and
> the test program). After creating the C library, I added the line
> /usr/l
: 'word.so',
'anotherReverse': , '__name__': 'word',
'__doc__': None}
>>> w = word.create_word("How are you?")
>>>print w
>>> print word.reverse(w)
Segmentation fault
Thank you very much!
Regards,
Huaicai
&g
On Tuesday 24 May 2005 4:40 pm, Huaicai Mo wrote:
> > -Original Message-
> > From: Phil Thompson [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 24, 2005 3:45 AM
> > To: pykde@mats.imk.fraunhofer.de
> >..
> > In your implementation of reverse() you are freeing the memory allocated
> -Original Message-
> From: Phil Thompson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 24, 2005 3:45 AM
> To: pykde@mats.imk.fraunhofer.de
>..
> In your implementation of reverse() you are freeing the memory allocated
> to
> the Word structure and the word itself. Because the wra
On Monday 23 May 2005 7:38 pm, huaicai wrote:
> Hi all,
>
> I was trying to use SIP to wrap a C library GTS(gnu triangular surface). I
> am new to the SIP tool, so before wrapping GTS, I am learning to wrap a
> simple C libary just like the C example(word) in the SIP reference guide.
>
> I implemen
On Monday 23 May 2005 11:38, huaicai wrote:
> Hi all,
>
> I was trying to use SIP to wrap a C library GTS(gnu triangular surface). I
> am new to the SIP tool, so before wrapping GTS, I am learning to wrap a
> simple C libary just like the C example(word) in the SIP reference guide.
>
> I implemente
++? I didn't see any known packages wrapped by Pyrex, did you?
Huaicai
> -Original Message-
> From: Roberto Alsina [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 23, 2005 3:35 PM
> To: huaicai
> Subject: Re: [PyKDE] Help on wrapping a C library
>
> Not to be
Hi all,
I was trying to use SIP to wrap a C library GTS(gnu triangular surface). I
am new to the SIP tool, so before wrapping GTS, I am learning to wrap a
simple C libary just like the C example(word) in the SIP reference guide.
I implemented the "Word" libary in C and a C test program works