caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* How to pass C pointers to Caml
@ 2010-03-01  3:55 Jianzhou Zhao
  2010-03-01  6:22 ` [Caml-list] " Florent Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Jianzhou Zhao @ 2010-03-01  3:55 UTC (permalink / raw)
  To: caml-list

I have been calling OCaml code from C in my project.
The C code has some pointers to C structures.
I got 'seg fault' when calling the OCaml function receiving
C structure pointers.

18.7 at http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html
gives the examples that pass int into OCaml. These examples work for me.
But, Does OCaml support to pass C structure pointers to OCaml?

-- 
Jianzhou


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-03-03 11:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-01  3:55 How to pass C pointers to Caml Jianzhou Zhao
2010-03-01  6:22 ` [Caml-list] " Florent Monnier
2010-03-01 13:23   ` Jianzhou Zhao
2010-03-01 13:24   ` Goswin von Brederlow
2010-03-01 23:04     ` Florent Monnier
2010-03-02 10:19       ` Goswin von Brederlow
2010-03-02 11:34         ` Florent Monnier
2010-03-03 11:02           ` Goswin von Brederlow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).