Compiler errors 无法将libsvm与OCaml一起使用
我尝试在OCaml项目中使用libsvm:Compiler errors 无法将libsvm与OCaml一起使用,compiler-errors,ocaml,libsvm,lapack,Compiler Errors,Ocaml,Libsvm,Lapack,我尝试在OCaml项目中使用libsvm: open Lacaml.D open Libsvm 但是,当我尝试运行makefile时,我遇到了一个奇怪的错误: ocamlfind: Error from package `threads': Missing -thread or -vmthread switch 我的makefile是: ocamlfind ocamlopt -o prog -linkpkg -package lacaml -package libsvm Example1.m
open Lacaml.D
open Libsvm
但是,当我尝试运行makefile时,我遇到了一个奇怪的错误:
ocamlfind: Error from package `threads': Missing -thread or -vmthread switch
我的makefile是:
ocamlfind ocamlopt -o prog -linkpkg -package lacaml -package libsvm Example1.ml
我确保所有包都存在(使用depext):
您必须指示ocamlfind通过将选项-thread或-vmthread-see设置为GV来选择线程库。您必须指示ocamlfind通过将选项-thread或-vmthread-see设置为GV来选择线程库。您是否尝试将-thread传递给ocamlfind?看到它的工作,如果你可以发布它作为一个答案,我会验证它:)你有没有尝试传递-线程到ocamlfind?看到它的工作,如果你可以张贴它作为一个答案,我会验证它:)
# 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