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 librlgl

Today, I'm freeing a new rainbrurpg-related project. Its repository is now located at https://bitbucket.org/rainbru/librlgl/. This library will be a fundamental piece in the new RainbruRPG's ecosystem, providing the graphical content of the game client.

A screenshot of the librlgl project README

Initial news

This code is designed to be used as a git submodule (as libwsmeta) to provide dependency check and library building. The aim of this project is to define a DSL used to generate and use complete 3D worlds.

Its major dependencies are mainly boost components (system, filesystem, program-options and thread) but it uses gtest to implement unit tests.

2022 update

The project isn't hosted at github anymore. As many of my old, game-oriented projects, it is now hosted at bitbucket. Dependencies now include qtbase and libgit2 development packages. As other rainbrurpg-related projects, it also depends on boost libraries, especially its system, filesystem and thread components.

Comments

Popular posts from this blog

How to fix the Unbound module Graphics in an ocaml project

How to make a map of variant in C++