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 void pixDestroy ( PIX **ppix );
>
> extern PIX * pixClone ( PIX *p
On 02/14/2010 07:32 PM, 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 void pixDestroy ( PIX **ppix );
extern PIX * pixClone ( PIX *pixs );
extern PIX
If you want to wrap the library in C I believe you will have to use the
standard python API, as boost requires C++ features.
It sounds like you do not want to write a wrapper library and instead add
code to leptonica to make it python import-able. I would not suggest this
approach.
If you want to
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 );
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.
Can you create small and complete example? ( C++ code, Py++ scri
On Sat, Feb 13, 2010 at 8:05 PM, Roman Yakovenko
wrote:
> On Sat, Feb 13, 2010 at 5:41 PM, peoro wrote:
>> Hello,
>> I noticed that some Py++ traits for standard containers are missing a
>> few methods that I think would be needed.
>> For example `set_traits' (container traits for `std::set') is