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

RainbruRPG switched to revision 254

RainbruRPG v0.0.5-253 is over, a client-only work. Since the last release announcement, two revisions later, many client improvements have been implemented :

  • We added a FPS-related statistics geometry buffer to the MainMenu;
  • The Alt+Enter key binding adds a real time full screen switch feature;
  • You can take a .png screenshot using the F11 key.
The new RainbruRPG key bindings

Original Nov. 2016 news

All these improvements are possible thanks to the game state handling of the client.
You can download this release at github.

Next release will focus on new client improvements and a better Ogre3D reconfiguration mechanism. This will let us handle new keybindings for real time resolution change and maybe start to implement the Options game state.

Sep. 2022 update

As I already announced in others updated news about this project, it is not hosted at github anymore but in bitbucket instead. Here is its new homepage. As a direct result, all links from this news are now dead. I only keep it for history and further references.

Comments

Popular posts from this blog

How to make a map of variant in C++