Successfully reorganized my project for ocamlbuild with subdirectories and using ocamlfind it was difficult for me to create a top level.
I built a .mltop file containing all the modules to be included, and added the packages to _tags , but the assembly does not work. He cannot find the C functions compiled with one of the modules. When -classic-display I see this libcside.a file that does not turn on and does not even compile at all! The c file is added as a dependency in myocamlbuild.ml ,
flag ["link"; "ocaml"; "use_cutil"] (S [A"-cclib"; A"-L."; ]); dep ["link"; "ocaml"; "use_cutil"] ["libcside.a"];
and in _tags ,
<utilities.*> : use_cutil <**/*.top> : use_str, use_unix, use_cutil, use_curl, use_mysql
and finally in libcside.clib ,
cutil.o
I am missing something in setting up the assembly for the top level, but I cannot find a reliable resource on the Internet. Thanks.
source share