我只是在使用 OCaml 4.02(使用 opam)尝试我的代码,我收到很多这样的警告:
File "_tags", line 14, characters 121-134:
Warning: the tag "link(utils.o)" is not used in any flag
declaration, so it will have no effect; it may be a typo.
Otherwise use `mark_tag_used` in your myocamlbuild.ml to
disable this warning.
但它定义在myocamlbuld.ml
:
pdep ["link"] "link" (fun param -> [param]);
我可以通过以下方式摆脱它:
mark_tag_used("link(utils.o)");
但每次使用标签时,我都需要一条这样的线!此外,我的代码将不会使用早期版本的 OCaml 构建。一般解决方法是什么?