Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] OCamlMake and cmo files
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-27 (12:14)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] OCamlMake and cmo files
On Thu, 27 Nov 2003, Flavio wrote:
> and the error is 
> ocamlc  -I +lablgtk2 lablgtk.cma gtkInit.cma -o editor editor.cmo
> Cannot find file gtkInit.cma
> Right, the file is gtkInit.cmo but if i add the extension to the 
> filename it tells: Cannot find file gtkInit.cmo.cma

There is a good reason why this is handled this way: the extension
differs for byte- and native code libraries.

If you want to link anything that is only available in byte code (or
pass special flags to the byte code linker), just use the variable
OCAMLBLDFLAGS (see README in the distribution for details). Everything
you put in there will be passed verbatim in the linking stage.

Markus Mottl

Markus Mottl

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: