Use another language to call a function: Difference between revisions

Line 162:
;;</lang>
 
compile with:
<lang ocaml>ocamlopt -output-obj caml_part.ml -o caml_part_obj.o
 
gcc -c main.c -I"`ocamlc -where`"
gcc ocamlopt -ooutput-obj progcaml_part.optml main.-o caml_part_obj.o \
gcc -c main.c -I"`ocamlc -where`"
gcc -o prog.opt main.o caml_part_obj.o \
-L"`ocamlc -where`" \
-lm -ldl -lasmrun</lang>
 
=={{header|Tcl}}==
Anonymous user