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] Ocamlmakefile and Lablgtk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-11-13 (07:19)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] Ocamlmakefile and Lablgtk
On Tue, 13 Nov 2001, Johann Spies wrote:
> Cannot find file gtkInit.cmxa
>                  ^^^^^^^^^^^^   
> The problem is that it should use gtkInit.cmx.  There is no
> gtkInit.cmxa (at least in thei Debian distribution). 

Ok, I see, I thought that we were talking about a library. Try the
following instead:

  OCAMLNLDFLAGS := gtkInit.cmx
  OCAMLBLDFLAGS := gtkInit.cmo

It would certainly be better to have a true library file in the
distribution rather than the "naked" compiled module file.

> I did not previously understand the difference between .cmx and
> .cmxa files.  It becomes clearer now.

.cmx-files are (natively) compiled implementations of OCaml-modules,
.cmxa-files combine several such implementations, i.e. they are library

Markus Mottl

Markus Mottl                                   
Austrian Research Institute
for Artificial Intelligence        
Bug reports:  FAQ:
To unsubscribe, mail  Archives: