Skip to content

Error when compiling Z3 #7

Description

@DavidAdamczyk

Hello,
I have question about readme instructions. The second step is compile Z3 version 4.6.2 (5651d00751a1eb40b94db86f00cb7d3ec9711c4d) but I found this error:

In file included from ../src/util/lp/sparse_matrix.h:23,
                 from ../src/util/lp/lu.h:27,
                 from ../src/util/lp/lp_primal_core_solver.h:32,
                 from ../src/util/lp/lp_primal_simplex.h:27,
                 from ../src/util/lp/mps_reader.h:32,
                 from ../src/shell/lp_frontend.cpp:12:
../src/util/lp/permutation_matrix.h: In member function ‘unsigned int* lp::permutation_matrix<T, X>::values() const’:
../src/util/lp/permutation_matrix.h:135:44: error: cannot convert ‘const vector<unsigned int>’ to ‘unsigned int*’ in return
  135 |         unsigned * values() const { return m_permutation; }
      |                                            ^~~~~~~~~~~~~
      |                                            |
      |                                            const vector<unsigned int>
make: *** [Makefile:3998: shell/lp_frontend.o] Chyba 1

The error is probably solved by Z3Prover/z3#1688

So the question is which is the right commit hash (or tag, or Z3 version?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions