[SCIP] Problems trying to build 8.0

Stefan Vigerske svigerske at gams.com
Fri Dec 24 02:33:18 CET 2021


Hi,

first try with a C++ compiler for CMAKE_CXX_COMPILER, e.g.,
   -DCMAKE_CXX_COMPILER=`which g++`

If that doesn't help and you won't need the .nl reader and AMPL 
interface, try -DAMPL=off as a workaround.

Stefan

On 12/23/21 19:30, Victor Miller wrote:
> I downloaded the source tar file for scip 8.0.0 and tried compiling it.
> I'm on a linux system (AWS) using GCC version 11.  Everything compiled,
> zimpl and soplex built ok, but when it came time to link scip I got the
> errors below.  Any suggestions?
> 
> Linking CXX executable ../../bin/scip
> /aws/local/GCC/11.2/bin/../lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> CMakeFiles/scip.dir/scip/reader_nl.cpp.o: undefined reference to symbol
> '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm@
> @GLIBCXX_3.4.21'
> /aws/local/GCC/11.2/bin/../lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> /usr/local/GCC/current11/lib64/libstdc++.so.6: error adding symbols: DSO
> missing from command line
> collect2: error: ld returned 1 exit status
> make[2]: *** [bin/scip] Error 1
> make[1]: *** [scip/src/CMakeFiles/scip.dir/all] Error 2
> [ 75%] Linking CXX shared library ../../lib/libscip.so
> [ 75%] Built target libscip
> make: *** [all] Error 2
> 
> Here is the cmake command that I used (inside a new build subdirectory)
> 
> cmake -DCMAKE_C_COMPILER=`which gcc` -DCMAKE_CXX_COMPILER=`which gcc`
> -DPAPILO=off -DIPOPT=off  ..
> 
> 
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip



More information about the Scip mailing list