Compiling C lib and OCaml exe using it, all using ocamlfind
- by Magnus
I'm trying to work out how to use ocamlfind to compile a C library and an OCaml executable using that C library.
I put together a set of rather silly example files.
% cat sillystubs.c
#include <stdio.h>
#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/alloc.h>
#include <caml/custom.h>
value…