Wednesday 2 July 2008

O'Caml Executable

I created my first Executable in O'Caml yesterday. The program was a simple OpenGL routine that displayed a triangle on the screen & I used the following commands to create it.

ocamlopt -I +lablgl lablgl.cmxa lablglut.cmxa simple.ml

Just enter the above code in a Windows Command Prompt, making sure that you are in the folder where your source file is.

During compilation a few warnings were displayed & I had no control over the name of the .exe but I think I know how to solve those problems.
Bookmark and Share

No comments: