首页 > 解决方案 > 构建 LablGtk 失败

问题描述

我正在尝试构建LablGtk以启用CoqIDE从源代码构建。我lablgtk-2.18.7.tar.gz这里用过。当我尝试configure-make它时,我得到了这个错误(以及类似的其他错误):

File "gdk.ml", line 346, characters 2-55:
346 |   external create : len:int -> t = "ml_point_array_new"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (warning 61): This primitive declaration uses type t, which is unannotated and
unboxable. The representation of such types may change in future
versions. You should annotate the declaration of t with [@@boxed]
or [@@unboxed].

我做错什么了?

标签: gtkocamlconfigure

解决方案


Lablgtk 的 Makefile 正在将所有警告变成错误,这往往会随着新的编译器版本而中断。-warn-error A-52您可以通过从 Makefile 中删除来修复此行为。


推荐阅读