Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation errors #36

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

jordi-petit
Copy link

This pull request fixes two compilation errounds found when compiling minisat under Mac OS (clang).

There are still bugs when generating the libraries, as the --static and -soname flags are not recognized. I fixed them adhoc in the Makefile, but I guess these should be fixed in the CMakeLists.txt file

Jordi Petit added 4 commits June 7, 2019 14:05
CLang reports this error:

./minisat/core/SolverTypes.h:55:16: error: friend declaration specifying a default argument must be a definition
    friend Lit mkLit(Var var, bool sign = false);
               ^
./minisat/core/SolverTypes.h:63:14: error: friend declaration specifying a default argument must be the only declaration
inline  Lit  mkLit     (Var var, bool sign) { Lit p; p.x = var + var + (int)sign; return p; }
             ^
./minisat/core/SolverTypes.h:55:16: note: previous declaration is here
    friend Lit mkLit(Var var, bool sign = false);
               ^
2 errors generated.
CLang reports this error:

minisat/utils/System.cc:90:17: error: out-of-line definition of 'memUsedPeak' does not match any declaration in namespace 'Minisat'
double Minisat::memUsedPeak() { return memUsed(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant