【发布时间】:2013-05-14 21:03:39
【问题描述】:
我通过在_tags 中添加package(async_core) 来使用Jane Street 的async_core。
当我使用ocamlbuild -use-ocamlfind -I src test/test_airport.native 时,它给了我以下错误:
camlfind ocamlopt -linkpkg -package async_core -package unix -package netclient -package mongo -package xml-light src/airport.cmx 测试/test_airport.cmx -o test/test_airport.native ocamlfind:错误 来自包 `threads':缺少 -thread 或 -vmthread 开关
我用谷歌搜索了一下,这是我得到的http://caml.inria.fr/pub/docs/manual-ocaml-4.00/manual039.html
上面写着:
使用系统线程的程序必须按如下方式链接:
ocamlc -thread other options unix.cma threads.cma other files
所以我像这样更改了我的 ocamlbuild 命令:
ocamlbuild -use-ocamlfind -cflag -thread -I src test/test_airport.native
但错误仍然相同。没有-thread,ocamlbuild 生成的实际命令也保持不变。
我该如何处理?
【问题讨论】:
-
谁这么讨厌我,以至于对我的每一个问题都投了反对票?
标签: ocaml ocamlbuild