3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00
z3/examples/c++
Dan Liew 9b48b5ca83 When building with OpenMP make sure libz3 passes extra linker
flags. This is necessary for libz3 to be usable from the Python
bindings when libz3 is built with gcc or clang.
2016-03-04 15:26:09 +00:00
..
CMakeLists.txt When building with OpenMP make sure libz3 passes extra linker 2016-03-04 15:26:09 +00:00
example.cpp add documentation methods to param_descrs, add C++ API and example for param_descrs. Issue #443 2016-02-12 11:45:00 +00:00
README c++ example 2012-10-28 10:06:02 -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 OSX and Linux, you must install z3 first using 
   sudo make install
OR update LD_LIBRARY_PATH (Linux) or DYLD_LIBRARY_PATH (OSX) with the build directory. You need that to be able to find the Z3 shared library.