garrigue / lablgtk

LablGTK 2 and 3: an interface to the GIMP Tool Kit
https://garrigue.github.io/lablgtk
Other
89 stars 40 forks source link

fails to compile on ocaml 4.02.3 #17

Closed treinen closed 5 years ago

treinen commented 5 years ago

README says that one needs ocaml-3.11 or more (4.06 is preferred)

When compiling on a debian stable machine (ocaml 4.02.3):

ocamlc.opt   -w s-3+52 -warn-error A-52 -c  gutf8.ml
File "gutf8.ml", line 71, characters 26-27:
Error: The function applied to this argument has type int -> int -> string
This argument cannot be applied with label ~pos
Makefile:192: recipe for target 'gutf8.cmo' failed

For debian it would be fine to require ocaml >= 4.05, but then please say so and adapt the check in configure.in accordingly.

-Ralf.

treinen commented 5 years ago

in fact it is the same with ocaml 4.05.0. -Ralf.

garrigue commented 5 years ago

Thank you for the report. Indeed 4.05 didn't have Bytes in StdLabels. I fixed that both in master and lablgtk3, requiring 4.05 to be sure.

treinen commented 5 years ago

Thanks, it compiles fine now on my machine (ocaml 4.05.0).