Re: strange enough, lablgtk2.10.1 won't compile
Jacques GARRIGUE <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
Are you sure you are using 2.10.1? IIRC, this is exactly the error message you get when compiling lablgtk 2.10.0 under ocaml 3.10.2. The solution was simple enough: correct the type in gContainer.mli. Jacques From: Krzysztof Worytkiewicz <[email protected]> > Hi, > > I get the following error when trying to compile lablgtk 2.10.1 > > ocamlc.opt -w s -c gContainer.mli > ocamlc.opt -w s -c gContainer.ml > The implementation gContainer.ml does not match the interface > gContainer.cmi: > Values do not match: > val pack_container : > create:(([> `container | `widget ] as 'a) Gobject.param list -> > (#GObj.widget as 'b)) -> > 'a Gobject.param list -> > ?border_width:int -> > ?width:int -> > ?height:int -> ?packing:(GObj.widget -> unit) -> ?show:bool -> > unit -> 'b > is not included in > val pack_container : > create:([> Gtk.container ] Gobject.param list -> (#GObj.widget > as 'a)) -> > [> Gtk.container ] Gobject.param list -> > ?border_width:int -> > ?width:int -> > ?height:int -> ?packing:(GObj.widget -> unit) -> ?show:bool -> > unit -> 'a > make[1]: *** [gContainer.cmo] Error 2 > make: *** [world] Error 2