3.2. Compiling Hello World

To compile use:

ocamlc -I +lablgtk2 -o helloworld lablgtk.cma gtkInit.cmo helloworld.ml

The options are:

The library and object that are usually linked in are:

There are many other options and libraries very useful, please refer the ocaml manual.