opam

Installing ocaml API for Z3 using opam

。_饼干妹妹 提交于 2019-12-02 01:10:38
I want to use Z3 in my OCaml program. Using opam, I did $ opam install z3 $ eval $(opam env) then tried compiling with $ ocamlfind ocamlopt -o main -package z3 -linkpkg main.ml What I get is a huge dump of thousands of In function foo undefined reference to bar , starting with /home/andrepd/.opam/4.06.1+flambda/lib/z3/libz3-static.a(api_datatype.o): In function `mk_datatype_decl': api_datatype.cpp:(.text+0x4bf): undefined reference to `__cxa_allocate_exception' api_datatype.cpp:(.text+0x522): undefined reference to `__cxa_throw' api_datatype.cpp:(.text+0x57b): undefined reference to `__cxa

How can I install OCaml with OPam on windows?

雨燕双飞 提交于 2019-11-29 05:56:06
How can I install OCaml with OPam on windows? I have been able to setup OCaml 4.03.0 in Windows 10, using the Opam package manager, by following the tutorial from this website: http://fdopen.github.io/opam-repository-mingw/ . Here are the detailed steps that I did: Install OCaml, Opam and Cygwin: Download the installation package from this link: http://fdopen.github.io/opam-repository-mingw/installation/ . There are both the 32 bit and 64 bit version, but I suggest to install the OCaml 64bit . When running the graphical installation file, it will automatically install OCaml 4.02.3, Cygwin,

OPAM package not running

痴心易碎 提交于 2019-11-28 07:55:26
问题 I've installed OPAM and run the initialization and updated my .bashrc code too. I then installed the ocamlfind package, which went successfully. But when I try #use "topfind";; I get the following Cannot find file topfind I'm running ocaml 4.00.1 built from source on Opensuse 12.2. 回答1: If $OCAML_TOPLEVEL_PATH is not defined, you have to defined it: export OCAML_TOPLEVEL_PATH=/home/%user%/.opam/%version%/lib/toplevel Don't forget to change %user% and your compiler %version% Check this issue