Discussion:
best way to implement c/c++ FFI for ocaml ?
b***@aracnet.com
2004-09-10 04:41:33 UTC
Permalink
I was wondering if someone could give me some advice on the best way
to approach writing ffi's to c or c++ code in ocaml.

I looked at the camlidl, but I can't tell if it's more specifically
for windows.

Is the swig implementation for ocaml in useful shape ?

Any other comments or advice ?

thanks

brian
Brandon J. Van Every
2004-09-10 07:04:25 UTC
Permalink
This post might be inappropriate. Click to display it.
Richard Jones
2004-09-10 08:54:32 UTC
Permalink
Post by b***@aracnet.com
I was wondering if someone could give me some advice on the best way
to approach writing ffi's to c or c++ code in ocaml.
I looked at the camlidl, but I can't tell if it's more specifically
for windows.
Is the swig implementation for ocaml in useful shape ?
Any other comments or advice ?
Writing the interface by hand is simple enough. Depends, of course,
on the platform you are using and the nature and extent of the C or
C++ library you want to interface with.

http://caml.inria.fr/ocaml/htmlman/manual032.html

Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
MOD_CAML lets you run type-safe Objective CAML programs inside the Apache
webserver. http://www.merjis.com/developers/mod_caml/
Loading...