English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Producing a C wrapper with ocamlbuild or OMake
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-27 (23:10)
From: Joel Reymont <joelr1@g...>
Subject: Producing a C wrapper with ocamlbuild or OMake

I'm trying to produce a C library from my OCaml code. I found these  
instructions on the net:

ocamlopt -output-obj -o fibcaml.o fib.ml
ocamlopt -c fibwrap.c
cp /usr/local/lib/ocaml/libasmrun.a libfib.a
ar r libfib.a fibcaml.o fibwrap.o

How would I accomplish the same with ocamlbuild, which I'm using now,  
or with OMake?

	Thanks in advance, Joel