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

Introducing rainbrurph

Today, I'm freeing another private project : rainbrurph. It's a side project of RainbruRPG and a complete rewrite in ANSI C.

It's not and will never be a playable game but I'm trying to solve some long-term issues I have with rainbrurpg in this project. For example, the switch to git or cmake directly come to this repository.

The new RainbruRPG's meta will also be implemented from an idea I had when searching new concept for this one.

This is a free software, licensed under the terms of the GPL v3.0 or later.

2022 Update

As many of my old game-related projects, this one isn't hosted at github anymore. Its new repository is now hosted at bitbucket and current work focuses on a module-based multi-backend launcher you can find in src/rml. Current implementation includes cli, tcl-based and tui modules.

Comments

Popular posts from this blog

How to make a map of variant in C++