Boolector / boolector

A Satisfiability Modulo Theories (SMT) solver for the theories of fixed-size bit-vectors, arrays and uninterpreted functions.
http://boolector.github.io
Other
335 stars 62 forks source link

Linker error when building boolector from source #201

Closed yzh119 closed 2 years ago

yzh119 commented 2 years ago

Hi boolector developers,

I followed the instruction on README, and met the following linker error when building boolector from source on my desktop:

Consolidate compiler generated dependencies of target boolector
[ 87%] Built target boolector
Consolidate compiler generated dependencies of target boolector-bin
[ 89%] Linking CXX executable ../bin/boolector
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status

Any ideas on how to fix it?

Environment:

aytey commented 2 years ago

You either need to install the static components for your compiler (something like dnf install libstdc++-static glibc-static) or pass --shared to Boolector's configure script.

yzh119 commented 2 years ago

That works, @aytey thank you!