3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00
z3/examples/c
Dan Liew de3700e1fd [CMake] Try to unbreak the C example build with older GCC versions
by forcing the language version to be C99.
2017-10-25 11:13:25 +01:00
..
CMakeLists.txt [CMake] Try to unbreak the C example build with older GCC versions 2017-10-25 11:13:25 +01:00
README Fix typo 2016-03-23 12:51:41 +09:00
test_capi.c Add example of using Z3's new model construction C API. This API 2017-10-24 17:34:47 +01:00

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

This command will create the executable c_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.