I am trying to use ocamlfind with both the OCaml compiler and with full access. From what I understand, I need to put the necessary libraries in the _tags file at the root of my project so that the ocamlfind tool takes care of loading it, which allows me to open them in my modules as follows:
open Sdl open Sdlvideo open Str
Currently, my _tags file looks like this:
<*>: pkg_sdl,pkg_str
I can apparently run the ocamlfind command with the ocamlc or ocamlopt argument if I donβt compile my project, but I did not see the ability to run toplevel in the same way. Is there a way to do this (something like " ocamlfind ocaml ")?
I also do not know how to place the project modules in the _tags file: imagine that I have the name of the module Earth . I am currently using the #use "land.ml" directive #use "land.ml" to open the file and load the module, but it has been suggested that this is not a good practice. What syntax should I use in _tags to specify it, ocamlfind should be loaded (given that land.ml is not in the ocamlfind search path)?
Thanks Charlie P.
Edit: according to the first response of this post, the _tags file should not be used with ocamlfind. The above questions are still there, there is only a new list: what is the right way to specify libraries for ocamlfind?
source share