mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 09:34:08 +00:00
and propagate its value into the C API examples. This flag forces the C API examples to use the C++ compiler as the linker rather than the C compiler. This a workaround to avoid linking errors when building with UBSan. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ex.smt | ||
maxsat.c | ||
README |
Small example using the C bindings. To build the example execute make examples in the build directory. This command will create the executable maxsat. 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. This directory contains a test file (ex.smt) that can be use as input for the maxsat test application.