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 >>>

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,

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 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

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

2010-02-14 Thread TP
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 void pixDestroy ( PIX **ppix ); extern PIX * pixClone ( PIX *pixs ); extern PIX * pixCopy ( PIX *pixd, PIX *pixs );

Re: [C++-sig] [Boost.Python] tutorial python extension fails on import with ImportError: No module named hello_ext

2010-02-10 Thread TP
I know this is a little late, but I just started using Boost.Python on Windows XP, and saw the same exact problems as the original poster so I thought I should give a solution since no one else has (and I've seen the same question go unanswered elsewhere). On 11/10/2009 10:36 PM, Charles Lentz wro