我一直在研究 OCaml 的 LLVM Kaleidoscope 教程。在教程的第二部分,我已经导航到文件夹中的示例代码
OCaml-Kaleidoscope\Chapter2
编译时遇到问题
ocamlbuild toy.byte
在cygwin上。这是教程中给出的编译代码。
我得到的错误是
''ocamlc.opt -c -I +camlp4 -pp camlp4of -o parser.cmo parser.ml
File "parser.ml", line 1:
Error: The files C:\OCaml\lib\pervasives.cmi and token.cmi
make inconsistent assumptions over interface Pervasives
Exit code 2 while executing this command:
''ocamlc.opt -c -I +camlp4 -pp camlp4of -o parser.cmo parser.ml
我从这个链接使用 llvm 3.8.0 版和 OCaml 4.02.3 版。
我需要做什么来解决这个问题?