mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
ML API build fixes for Windows.
This commit is contained in:
parent
1f0b5cd0bc
commit
134b93b43e
4 changed files with 34 additions and 14 deletions
|
@ -1,20 +1,23 @@
|
|||
Small example using the Z3 ML bindings.
|
||||
|
||||
To build the example execute
|
||||
make examples
|
||||
in the build directory.
|
||||
|
||||
It will create ml_example in the build directory,
|
||||
which can be run in the build directory via
|
||||
This will create ml_example and ml_example.byte in the build directory, which
|
||||
can be run in the build directory by calling
|
||||
LD_LIBRARY_PATH=. ./ml_example
|
||||
or
|
||||
LD_LIBRARY_PATH=. ./ml_example.byte
|
||||
for the byte-code version.
|
||||
|
||||
If Z3 was installed into the ocamlfind package repository (see src/api/ml/README),
|
||||
then we can compile this example as follows:
|
||||
If Z3 was installed into the ocamlfind package repository (see
|
||||
src/api/ml/README), then we can also compile this example as follows:
|
||||
|
||||
ocamlfind ocamlc -o ml_example.byte -package Z3 -linkpkg ml_example.ml
|
||||
or
|
||||
ocamlfind ocamlopt -o ml_example -package Z3 -linkpkg ml_example.ml
|
||||
|
||||
Note that the resulting binaries depend on the shared z3 library, which needs to be
|
||||
in the PATH (Windows), LD_LIBRARY_PATH (Linux) or DYLD_LIBRARY_PATH (OSX).
|
||||
Note that the resulting binaries depend on the shared z3 library
|
||||
(libz3.dll/.so/.dylb), which needs to be in the PATH (Windows), LD_LIBRARY_PATH
|
||||
(Linux), or DYLD_LIBRARY_PATH (OSX).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue