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 gl-adventure

This month (February 2018), I'm freeing gl-adventure (as I've already done for biology and librlgl).

Original news

A little dungeon crawl game written in C and OpenGL. Dependencies include GLUT and Gettext since I try to handle user messages translation. It also includes unit tests provided by the check unit test framework.

The menu
The game

This project doesn't intend to create a beautiful game, so its rendering is ugly. It is about learning C/opengl the hard way but not a modern way, for example it doesn't use any shader. A lot of room for improvment.

2022 Update

The project is now hosted at bitbucket. The current work intends to create the Game-oriented game state in the feature branch called feature_gsname. The master branch source code is known to build on modern linux-based Oses (tested on debian and manjaro).

Comments

Popular posts from this blog

How to make a map of variant in C++