On Thu, Apr 3, 2008 at 1:49 AM, Phillip B Oldham <[EMAIL PROTECTED]> wrote: > Would someone possibly be able to point me in the right direction to a > simple tutorial in how to link to/use a C library from within ocaml?
This tutorial page is a very nice introduction to wrapping C libraries for use in OCaml: http://www.linux-nantes.org/~fmonnier/OCaml/ocaml-wrapping-c.php Chapter 18 in the manual provides more detail if you need it: http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html There are tools to aid in developing C library bindings, but depending on the scope of your project it may be easier to just wrap the functions you need by hand. For larger libraries with relatively simple interfaces, camlidl can be quite useful: http://caml.inria.fr/pub/old_caml_site/camlidl/ Have fun! Hez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ocaml-developer" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ocaml-developer?hl=en For other OCaml forums, see http://caml.inria.fr/resources/forums.en.html -~----------~----~----~----~------~----~------~--~---
