[Scip] linking problems with icc

Tobias Achterberg achterberg at zib.de
Thu May 18 17:57:22 MEST 2006


Hi Sandor,

did you already try the "make.linux.x86.intel.dbg.static" that is included in the make/ subdirectory 
of SCIP? (I don't really know, why there is no .opt-version). This is slightly different to your 
makefile:

CC              =       icc
CXX             =       icc
FLAGS           +=      # -DROUNDING_FE
OFLAGS          +=      -g -mp -w2 -wd279,383,444,810,981 #-Xc
CFLAGS          +=
CXXFLAGS        +=
ARFLAGS         =       crs
LDFLAGS         +=
ZLIB_FLAGS      =
ZLIB_LDFLAGS    =       -lz
READLINE_FLAGS  =
READLINE_LDFLAGS=       -lreadline

I don't know what the parameters mean for the intel compiler, but one of the main differences is 
that there is no -lstdc++ and no -static in the LDFLAGS.

Here are the flags of Soplex' make.linux.x86.intel.opt.static. Probably, some combination of these 
flags will do the job.

CXX     =       icc
CPPFLAGS=       -Isrc -DNDEBUG -DNO_ADDITIONAL_CHECKS -DWITH_ZLIB
CXXFLAGS=       -O3 -tpp6 -axK -ansi -w1 -fno-rtti -par_report0 -vec_report0 -ip
LDFLAGS =       -lpthread -lz -lm -lstdc++ -static
ARFLAGS =       crs


The problem can also be the fact that SCIP is a C library while Soplex is C++. Maybe, the compiler 
messes namespaces up or you need an additional flag for this...

Best, Tobias


Sandor Balogh wrote:
> Dear All,
> 
> I have tried to compile the source with the Intel C++ Compiler 8.1 on
> Kubuntu 5.04 system. I have attached the corresponding makefiles. I
> get this error message:
> 
> sanyi at kubuntu:~/scip-0.82$ make OPT=opt LPS=spx COMP=intel LINK=static
> READLINE=false VERBOSE=true
> 
> [...]
> 
> -> linking bin/scip-0.82.linux.x86.intel.opt.static.spx
> icc obj/O.linux.x86.intel.opt.static/bin/cppmain.o \
>       -Llib -lscip.linux.x86.intel.opt.static
> -llpispx.linux.x86.intel.opt.static  -O3 -xP -w1 -ip
> -lsoplex.linux.x86.intel \
>       -lm  -lstdc++ -static  -o 
> bin/scip-0.82.linux.x86.intel.opt.static.spx
> lib/liblpispx.linux.x86.intel.opt.static.a(lpi_spx.o)(.gnu.linkonce.d._ZTI7SPxSCIP+0x8): 
> 
> undefined reference to `typeinfo for soplex::SPxSolver'
> make: *** [bin/scip-0.82.linux.x86.intel.opt.static.spx] Error 1
> 
> It must be my silly mistake but i don't know what is wrong. The SOPLEX
> solver seems to be OK.
> 
> Many thanks,
> 
> Sandor
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip


More information about the Scip mailing list