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's logger moved to OLD/ directory

Original news

Today's work (commits #821 and #822) is about code reorganization and the logger library.

Since I decided to switch to cmake and run integration tests, the multi-project layout was a mess.

Before the switch, every single binary/library has its own sub-directory and build system. The result is a bunch of different autotools scritps, each whith its own dependencies.
After the switch, all the components of the project will be build with only one command.

The logger/ directory finally moved to OLD/ and the code now lives in src/logger/. The meta/ directory also moved due to a complete re-implementation in the future.

Next libraries to be moved are services and network then the two binaries client and server will be placed in the same src/ tree.

Nov. 2022 Update

As stated in multiple other rainbrurpg-related news update, the source code of rainbrurpg is now hosted at bitbucket. The original news links are now dead.

Comments

Popular posts from this blog

How to fix the Unbound module Graphics in an ocaml project