3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 01:54:08 +00:00
z3/examples/c++
2018-10-02 17:38:09 +07:00
..
CMakeLists.txt [CMake] Use C++11 when building C++ API example. 2017-12-07 10:56:44 +00:00
example.cpp Add example of using z3's model construction C++ API 2018-07-10 11:16:20 +08:00
README Refer to macOS rather than Mac OS / OSX. 2018-10-02 17:38:09 +07:00

Small example using the c++ bindings.
To build the example execute
   make examples
in the build directory.

This command will create the executable cpp_example.
On Windows, you can just execute it.
On macOS and Linux, you must install z3 first using
   sudo make install
OR update LD_LIBRARY_PATH (Linux) or DYLD_LIBRARY_PATH (macOS) with the build directory. You need that to be able to find the Z3 shared library.