in reply to Wrapping C constructor with opaque pointer using Platypus
Hello there. Unfortunately I can't find the Alien::igraph, did you post that somewhere? No matter though.
From a cursory look at the igraph library, it seems igraph API expects you to manage the allocation of igraph_t structure on your own. Either a static or malloc'ed struct, but you have to allocate it somewhere. From this I presume you'd want a chunk (sizeof(igraph_t)) of opaque data in your perl object, not an opaque pointer. HtH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Wrapping C constructor with opaque pointer using Platypus
by pokki (Monk) on Feb 13, 2017 at 09:41 UTC | |
by Corion (Patriarch) on Feb 13, 2017 at 09:51 UTC | |
by pokki (Monk) on Feb 14, 2017 at 10:13 UTC |