One easy solution is to use `Ptr{Void}` in the structure definition,
which you then need to convert before accessing the structure.

-erik

On Sun, Nov 23, 2014 at 10:51 AM, Michiaki Ariga <[email protected]> wrote:
> Hi all,
>
> I troubled with binding C code to Julia.
> C code witch I want to bind have cross dependent structs like following,
>
> ```
> struct node {
>   struct node *next;
>   struct path *path;
>   ...
> }
>
> struct path {
>   struct node *rnode;
>   struct path *lnext;
>   ...
> }
> ```
>
> I know we can bind if I implement type like C structure, but in this case
> Julia doesn't know
> 2 structures depends on each other because one struct doesn't know other
> struct when first struct is defined.
>
> How can I bind such structs?
>
> ---
> Michiaki Ariga
>
>



-- 
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/

Reply via email to