2017-01-04 30 views
0

使用LIBSVM我试图用LIBSVM在OCaml的项目:无法与OCaml的

open Lacaml.D 
open Libsvm 

不过,我面对这个奇怪的错误,当我尝试运行我的生成文件:

ocamlfind: Error from package `threads': Missing -thread or -vmthread switch 

我makefile文件之中:

ocamlfind ocamlopt -o prog -linkpkg -package lacaml -package libsvm Example1.ml 

我确信所有的包都存在(使用depext):

# Installed packages for system: 
base-bigarray    base Bigarray library distributed with the OCaml compiler 
base-bytes    base Bytes library distributed with the OCaml compiler 
base-ocamlbuild   base OCamlbuild binary and libraries distributed with the OCaml compiler 
base-threads    base Threads library distributed with the OCaml compiler 
base-unix     base Unix library distributed with the OCaml compiler 
[...] 
lacaml     8.1.1 OCaml-bindings to BLAS and LAPACK. 
lbfgs     0.8.8 Minimization of multidimensional functions on bounded or unbounded domains. 
libsvm     0.9.3 LIBSVM bindings for OCaml 
+1

你尝试通过-thread到ocamlfind?见http://projects.camlcity.org/projects/dl/findlib-1.7.1/doc/guide-html/x265.html –

+0

它的工作,如果你可以发布它作为答案,我会验证它:) – RUser4512

回答

2

你必须指示ocamlfind由gving它的选项-thread或-vmthread选择线程库 - 看ocamlfind