I am trying to build clingo with scons. It complains about my compiler set which is "gcc-7-win64" latest version I could find. (I tried it with several older versions)
Error messages:
error: no usable c++ compiler found
error: no usable bison version found
my second question is this: where should I put the libraries that I manually download such as bison for scons to find easly ?
The problem is that SCons uses a clean Environment by default (no PATH
variable set), such that it doesn't find a command/program like "gcc
" and "bison
". See also #1 of our most-frequently-asked FAQs at http://scons.org/faq.html.
Please check whether the clingo project has foreseen this problem and offers a command-line option like "--with-bison
" (or similar) for setting the correct paths within the SConstruct(s).
Additional info: This is not so much a problem under Linux, because there a set of default directories like /usr/bin
get searched by default when detecting a tool like gcc/yacc/qmake...it can however get one when trying to cross-compile with SCons.