Speaking of SWIG, take a look at ODLL.
Best Regards,
Byron Hasle
byron.hale(a)einfo.com
>X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to
>owner-caml-list(a)pauillac.inria.fr using -f
>From: "Nicolas Cannasse" <warplayer(a)free.fr>
>To: "OCaml" <caml-list(a)inria.fr>
>Subject: [Caml-list] Announce - ODLL Release
>Date: Thu, 8 May 2003 20:50:04 +0900
>X-Mailer: Microsoft Outlook Express 6.00.2800.1106
>X-Spam: no; 0.00; cannasse:01 warplayer:01 librairies:01 motion-twin:01
>cmxa:01 ocaml:01 nicolas:01 stubs:01 interfaces:01 consortium:01 cma:03
>dll:03 lexifi:03 interface:03 library:03
>Sender: owner-caml-list(a)pauillac.inria.fr
>
>Hi list !
>
>I'm please to announce the first release of ODLL.
>
>If you're having a boss asking you to write C librairies but if you prefer
>to write them in OCaml, this tool is for you ! ODLL is creating a Win32 DLL
>from an OCaml library, and automatically generating the C stubs needed to
>interface the OCaml code and the C code and the .H interface. Simply run
>ODLL with you CMA/CMXA and one or several CMI interfaces and ODLL
>will do the job for you.
>
>The distribution is available at http://tech.motion-twin.com
>Comments/suggestions are welcome,
>
>Thanks to Lexifi - member of the Ocaml consortium - for their support in
>this project.
>
>Nicolas Cannasse
>
>-------------------
>To unsubscribe, mail caml-list-request(a)inria.fr Archives: http://caml.inria.fr
>Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
>Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Are there any future plans to go with the SWIG group
http://www.swig.org/ for interfacing with C code? They claim to support
Perl, Python, Tcl/Tk, Ruby, Guile, MzScheme, Java, OCAML, CHICKEN, and
C#, and as I've understood, you just run something like "swig -python"
on your header file to create everything you need to interface C to Python.
At the moment, I'd like to generate Haskell access to all the functions
and enums defined in the Oracle database C library libsqlora8
http://www.poitschke.de/libsqlora8/.
Something like SWIG sounds ideal for that. C2hs looks good. But somehow,
if I do it in c2hs I have to read and understand all about the ffi,
stable pointers and foreign pointers etc. Is the problem just too
complicated in Haskell to automate completely?
Amanda