How to fix the Unbound module Graphics in an ocaml project

Image
From ~/pr/gitl/ocaml-gol In a constant effort to learn new programming languages, I'm currently trying to use ocaml , a free and open-source general-purpose, multi-paradigm programming language maintained at the Inria . It's basically an extension of Caml with object-oriented features. I'm mostly interested by its functionnal and pattern matching features but the module part of the language can be a bit difficult to understand for someone with little to none ML (Meta Language) background.   The error When trying to use the graphics module to create a graphical window and go just a little further than the simplest helloworld program, here is the result : If the project uses dune : (executable (name ocaml_project) (libraries lwt.unix graphics) ) with this code : let () = Printf.printf "Hello, world!\n";; Lwt_io.printf "Hello, world!\n";; Graphics.open_graph " 800x600";; The first times I built this project running the du

Headers-date switches to revision 14

This little ruby project, introduced earlier in this post, used to test the GNU headers' dates for a complete project, just switched to revision 14. This project, and in the near future all of my public projects, uses an online coverage tool provided by coveralls.io.

Coveralls presentation

This online coverage tool is used to measure which source code is executed when a particular test suite runs. So you can know which part of a project isn't yet tested and improve software quality.

2022 update

This project is not hosted at github anymore, I moved it to bitbucket and it do not use coveralls anymore. You can always execute unit tests or compute code coverage locally though.

Since I do not use this project anymore obn a weekly basis, I can only test it once every 3 or 4 months. The text output actually works. The GTK-based GUI may be broken though.

Comments

Popular posts from this blog

How to make a map of variant in C++