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
你嘗試通過-thread到ocamlfind?見http://projects.camlcity.org/projects/dl/findlib-1.7.1/doc/guide-html/x265.html –
它的工作,如果你可以發佈它作爲答案,我會驗證它:) – RUser4512