Re: [C++-sig] [Boost.Python] Wrapping C library functions

2010-02-15 Thread joop renes
On Mon, 2010-02-15 at 13:44 -0800, TP wrote: > Doesn't the first example in The Boost.Python Tutorial > (http://www.boost.org/doc/libs/1_42_0/libs/python/doc/tutorial/doc/html/index.html) > show it making a simple C function available to Python? > > I want to be able to use the open source, Lepton

Re: [C++-sig] [Boost.Python] Wrapping C library functions

2010-02-15 Thread Roman Yakovenko
On Mon, Feb 15, 2010 at 11:50 PM, TP wrote: > Thank you for your response. ctypes was on my list of options to > investigate. I wonder if you know if it will be able to handle > parameters like PIX** ppix? Definitely > A generator would be nice, as the Leptonica Image Processing Library > is qui

Re: [C++-sig] [Boost.Python] Wrapping C library functions

2010-02-15 Thread TP
On Mon, Feb 15, 2010 at 1:41 PM, Stefan Seefeld wrote: > On 02/15/2010 04:26 PM, TP wrote: >> >> On Sun, Feb 14, 2010 at 5:04 PM, Stefan Seefeld >> wrote: >> >>> >>> Yes. Do you have the definition of PIX available ? In that case, you >>> could >>> use that via class_ >>> >> >> Yes. The entir

Re: [C++-sig] [Boost.Python] Wrapping C library functions

2010-02-15 Thread TP
On Sun, Feb 14, 2010 at 9:31 PM, Roman Yakovenko wrote: > On Mon, Feb 15, 2010 at 2:32 AM, TP wrote: >> Suppose I am attempting to use a C (not C++) library that has an .h file >> with things like this: >> >>  extern PIX * pixCreate ( l_int32 width, l_int32 height, l_int32 depth ); >>  extern voi

Re: [C++-sig] [Boost.Python] Wrapping C library functions

2010-02-15 Thread TP
Doesn't the first example in The Boost.Python Tutorial (http://www.boost.org/doc/libs/1_42_0/libs/python/doc/tutorial/doc/html/index.html) show it making a simple C function available to Python? I want to be able to use the open source, Leptonica C Image Processing Library (available at http::/lep

Re: [C++-sig] [Boost.Python] Wrapping C library functions

2010-02-15 Thread Stefan Seefeld
On 02/15/2010 04:26 PM, TP wrote: On Sun, Feb 14, 2010 at 5:04 PM, Stefan Seefeld wrote: Yes. Do you have the definition of PIX available ? In that case, you could use that via class_ Yes. The entire source of the Leptonica C Image Processing Library is available at http::/lepton

Re: [C++-sig] [Boost.Python] Wrapping C library functions

2010-02-15 Thread TP
On Sun, Feb 14, 2010 at 5:04 PM, Stefan Seefeld wrote: > Yes. Do you have the definition of PIX available ? In that case, you could > use that via class_ Yes. The entire source of the Leptonica C Image Processing Library is available at http::/leptonica.com. Could you give a little more deta

Re: [C++-sig] [Py++] Indexing suite 2: missing methods

2010-02-15 Thread Roman Yakovenko
On Mon, Feb 15, 2010 at 1:30 PM, peoro wrote: > On Sun, Feb 14, 2010 at 8:39 PM, Roman Yakovenko >> Can you create small and complete example? ( C++ code, Py++ script and >> Py++ generated code )? >> >> Thanks >> > > Sure: > > # main.cpp > #include > std::set f( ) { >        return std::set()

Re: [C++-sig] [Py++] Indexing suite 2: missing methods

2010-02-15 Thread peoro
On Sun, Feb 14, 2010 at 8:39 PM, Roman Yakovenko wrote: > On Sun, Feb 14, 2010 at 6:22 PM, peoro wrote: >> On Sat, Feb 13, 2010 at 8:05 PM, Roman Yakovenko >> wrote: >>> Did you try len( x )? >>> >> >> Yes, I tried and it isn't working. >> ... >> I've been trying with SVN revisions 1814 and 1824