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 255

Original news

RainbruRPG revision 254 is done and since the last announcement many client improvements have been implemented :

  • In-game resolution change using Alt++ and Alt+- keybindings;
  • configuration is saved after full screen status/resolution change;
  • GUI is not scaling anymore;
  • a temporary message prints the full screen status/resolution change;
  • better screen resolution handling to avoid segfault on resolution change.
Screenshot of a temporary message
You can download this release at github.
Next release will focus on new options handling and maybe a profile gamestate.

July 2022 update

Since this project is now hosted at bitbucket, the old github-powered links don't work anymore.

The development is very slow in these days and I can't really daily commit on this but I will try to reinstall this on my brand-new manjaro box in the next weeks. I certainly will update ROADMAP and README files at the same time.

Comments

Popular posts from this blog

How to fix the Unbound module Graphics in an ocaml project

How to use codecov.io in a C/C++ project