Ocaml Error : Unbound module when compiling
<p>I'm learning Ocaml and currently I'm building a graphical interface for a game. I used <code>Graphics</code> and <code>camlimages</code> but now I would like to add some buttons. So I searched for Gtk2 and I'm having problems to compile now. This is a part of my code:</p>
<pre class="lang-ml prettyprint-override"><code>open Gamebase
open Game_imp
open Graphics
open Graphic_image 
open Images 
open Png 

let _ = GMain.init () 
 
let window = GWindow.window 
    ~title:&quot;Simple lablgtk program&quot;
    ~width:320 
    ~height:240 ()
</code></pre>
<p>I used</p>
<pre><code>ocambuild -use-ocamlfind main.ml
</code></pre>
<p>before in order to compile combined with <code>_tags</code> file, but in order to include the gtk module, I tried</p>
<pre><code>ocamlfind ocamlc -g -package lablgtk2 -linkpkg main.ml -o main
</code></pre>
<p>which seemed to work in a sample exemple, however when I combine it with my projet, I get <code>&quot;Error: Unbound module Gamebase&quot;</code>. I tried</p>
<pre><code>ocamlfind ocamlc -I +gamebase -g -package lablgtk2 -linkpkg main.ml -o main
</code></pre>
<p>but doesn't seem to work.
Any hints and kind words are greatly appreciated.</p>