Dear caml-list,
I'd like to build a static C library implementing an interface to an
OCaml library, but I get some compilation errors. Here's an example of
the problem.
1) The ml_code.* files contain a hello_world function which I'd like to
provide in C.
ml_code.ml
let ml_hello_world () =
On 04/26/2012 10:58 AM, Xavier ALLAMIGEON wrote:
Dear caml-list,
I'd like to build a static C library implementing an interface to an OCaml
library, but I get some compilation errors. Here's an example of the problem.
1) The ml_code.* files contain a hello_world function which I'd like to
Dear Edwin,
Le 26/04/12 10:33, Török Edwin a écrit :
Here's the way I'm compiling everything. It builds a libhello_world.a static
library from ml_code.obj.o and c_code.o.
ocamlc -c ml_code.mli
ocamlopt -c ml_code.ml
ocamlopt -output-obj ml_code.cmx -o ml_code.obj.o
gcc -c c_code.c -I`ocamlc
On 04/26/2012 12:08 PM, Xavier ALLAMIGEON wrote:
What do you mean exactly? I imagine that test.o needs some functions of
the libhello_world.a. But I don't see why libasmrun would need some
other functions of libhello_world...
Well, this is the case. libasmrun contains the runtime system for
Le 26/04/12 14:23, Alain Frisch a écrit :
On 04/26/2012 12:08 PM, Xavier ALLAMIGEON wrote:
What do you mean exactly? I imagine that test.o needs some functions of
the libhello_world.a. But I don't see why libasmrun would need some
other functions of libhello_world...
Well, this is the case.