ocamlbuild Questions

5

Solved

It is unclear to newcomers to the ecosystem what is the canonically preferred way to structure and manage building small to medium sized OCaml projects. I understand the basics of ocamlc, &c.--...
Tanning asked 10/5, 2011 at 20:50

2

Solved

I am trying to create a library that I can use in other OCaml projects, and I'm totally lost. I'm currently using ocamlbuild which is great for spitting out executables, but I don't know how to ge...
Dualism asked 26/5, 2014 at 1:25

1

Solved

My problem is similar to this, however, in my case .ocamlinit is set. Here is my ocaml version. mymac:Desktop myusr$ ocaml --version The OCaml toplevel, version 4.08.1 Here is my opam version. ...
Fibro asked 17/9, 2019 at 2:51

3

I'm new to OCaml and I'm trying to try (:P) Facebook Reason syntax. I cannot find a way to make this compile because if cannot find the Core module (already installed with opam). I'm trying to com...
Traherne asked 28/5, 2016 at 23:5

1

Solved

I discovered that Menhir provides --dump and --explain options and it helps debugging a lot. But how can I enable these options under ocamlbuild so that Menhir always generates dump files at compil...
Alps asked 3/5, 2015 at 8:1

1

Solved

I am a new OCaml user. I have asked a question to learn how to set up a basic OCaml project, but I still have issues. Jump to the end for a TL;DR For instance, I am trying to learn Irmin. On the h...
Patriarchate asked 9/3, 2015 at 13:55

1

Solved

I'd like to pass the -S flag to ocamlopt when building with the ocamlbuild and corebuild commands. I understand doing ocamlbuild -cflag -S ... won't work since -S flag does only exist for ocamlopt...
Doings asked 6/12, 2014 at 15:29

2

Solved

In my project I have a file that uses Core.Std stuff, so I have run opam install core and added open Core.Std in my file. When I run ocamlbuild myprogram.native it says: Error: Unbound m...
Austine asked 19/11, 2014 at 21:20

1

Solved

I'm reading an OCaml project recently and I want to put the source files in the utop so I can do some experiments. Suppose I have two files amodule.ml, bmodule.ml. bmodule.ml will use functions d...
Foulard asked 14/12, 2013 at 3:5

2

Solved

I want to include source code in my generated docs. This works when I invoke ocamldoc on the command-line like this: ocamldoc -I _build -html -keep-code -colorize-code *.{ml,mli} -d .docdir. Howeve...
Gastritis asked 11/12, 2012 at 20:44

2

Solved

I'm trying to build an OCaml binary main.native from main.ml that also relies on a single C file custom.c to implement a new primitive. This C file needs to be compiled and linked. Is there a way t...
Zucchetto asked 28/10, 2013 at 20:26

2

Solved

I'm trying to make this piece of code: open Lwt;; open Cohttp;; (* a simple function to access the content of the response *) let content = function | Some (_, body) -> Cohttp_lwt_unix.Body.s...
Puncture asked 28/5, 2013 at 2:38

1

Solved

I am using Jane Street's async_core by adding package(async_core) in _tags. When I use ocamlbuild -use-ocamlfind -I src test/test_airport.native, it gives me the following error: camlfind ocam...
Renounce asked 14/5, 2013 at 21:3

1

Solved

I'm trying to use ocamlbuild instead of make, but I'm unable to correctly link my object files with external .cma libraries. It seems like ocamlbuild tries to determine dependencies first and then ...
Watercolor asked 26/1, 2013 at 18:4

2

I'm using camlp4.macro to enable conditional compilation. I'm having problems informing OCamlbuild that certain files tagged with "use_jscore" must be preprocessed with a given camlp4 option. Here'...
Unlearn asked 18/4, 2012 at 14:18

1

Solved

I'm having an issue with the order in which the libraries are added to the linker. Previously built libraries by ocamlbuild are linked in after the list of libraries I included by the flag rule. An...
Apopemptic asked 28/11, 2011 at 19:43

1

Solved

I am trying to keep my project self-contained, with all major 3rd party library dependencies built and referenced within the project repository. The main ocaml portions of my project rely on ocamlb...
Corporative asked 1/9, 2011 at 18:45

1

Solved

I have a simple ocamlbuild project which uses Batteries, including syntax extensions. _tags: <*>: pkg_batteries,pkg_threads,pkg_batteries.syntax,syntax_camlp4o something.ml: open Batteri...
Lancer asked 2/6, 2011 at 18:53

2

I have a large OCaml project which I am compiling with ocamlbuild. Everything works fine, I have a great executable which does everything as I want. The problem is that when I take that native exec...
Crossley asked 12/11, 2010 at 19:40

7

Solved

I'm toying around with OCaml. The first thing I want to know how to do is build an OCaml project. Right now, I just want something stupidly simple since I'm just learning. Could anyone point me tow...
Oringas asked 27/9, 2009 at 13:1

1

Solved

Having successfully reorganized my project for ocamlbuild with subdirectories and using ocamlfind, I've found it difficult to build the top-level. I've constructed a .mltop file containing all the...
Bank asked 3/3, 2010 at 19:1

2

Solved

I recently decided to organize the files in my project directory. I moved the parsers I had for a few different file types into their own directory and also decided to use ocamlbuild (the as the pr...
Noonberg asked 5/2, 2010 at 18:49
1

© 2022 - 2024 — McMap. All rights reserved.