Originally posted by: sidgalt
Hey,
I'm using Debian Lenny 5. Here's the relevant part of the makefile :-
SOLVERDIR=/com/ilog/solver64.lintel
CONCERTDIR=$(SOLVERDIR)/../concert24
CPLEXDIR=/com/ilog/cplex100.lintel/cplex100
EXDIR=$(SOLVERDIR)/examples
EXSRC=$(EXDIR)/src
EXINC=$(EXDIR)/include
EXDATA=$(EXDIR)/data
CPLEXINCDIR = $(CPLEXDIR)/include
SOLVERIncDir=$(SOLVERDIR)/include
CONCERTIncDir=$(CONCERTDIR)/include
DEMODIR=$(SOLVERDIR)/examples
DEMOSRCDIR=$(DEMODIR)/src
CPLEXLIBDIR = $(CPLEXDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
CPLEXBINDIR = $(CPLEXDIR)/bin/$(BINDIST)
CPLEXJARDIR = $(CPLEXDIR)/lib/cplex.jar
CFLAGS=$(CSYSFLAGS) $(OPT) $(OPTIONS) -I$(SOLVERIncDir) -I$(CONCERTIncDir) -I$(EXINC) $(CMTFLAGS) -I$(CPLEXINCDIR)
LDFLAGS=-L$(SOLVERDIR)/lib/$(SYSTEM)/$(LIBFORMAT) -lsolver -lsolverfloat \
-L$(CONCERTDIR)/lib/$(SYSTEM)/$(LIBFORMAT) -lconcert $(LDSYSFLAGS) $(LDMTFLAGS) $(LIBS) -L$(CPLEXLIBDIR) \
-lilocplex -lcplex
CFLAGS are the include flags and LDFLAGS are the library flags
Here's part of the error message :
/com/ilog/cplex100.lintel/cplex100/lib/x86_rhel4.0_3.4/static_pic/libilocplex.a(ilocplex.o):(.gnu.linkonce.d._ZTV9IloBoundI+0x48): undefined reference to `IloExtractableI::expandTo(IloModelI*) const'
/com/ilog/cplex100.lintel/cplex100/lib/x86_rhel4.0_3.4/static_pic/libilocplex.a(ilodeflpextr.o): In function `IloDefaultLPExtractor::removeForAll(IloForAllI const*, IloCplexI::Data*)':
ilodeflpextr.cpp:(.text+0x976): undefined reference to `IloAlgorithmI::getModelEvaluator()'
/com/ilog/cplex100.lintel/cplex100/lib/x86_rhel4.0_3.4/static_pic/libilocplex.a(ilodeflpextr.o): In function `IloCplexExtractForallOp::applyAnd(void*, IloExtractableI const*, IloExtractableI const*)':
ilodeflpextr.cpp:(.text+0xbd7): undefined reference to `IloAlgorithmI::getModelEvaluator()'
ilodeflpextr.cpp:(.text+0xc03): undefined reference to `IloForAllRange::IloForAllRange(IloEnv, IloForAllI*, long, void*, char*)'
/com/ilog/cplex100.lintel/cplex100/lib/x86_rhel4.0_3.4/static_pic/libilocplex.a(ilodeflpextr.o): In function `IloCplexExtractForallOp::apply(void*, IloExtractableI const*, IloExtractableI const*)':
ilodeflpextr.cpp:(.text+0xc8e): undefined reference to `IloAlgorithmI::getModelEvaluator()'
ilodeflpextr.cpp:(.text+0xcf4): undefined reference to `IloForAllRange::IloForAllRange(IloEnv, IloForAllI*, long, void*, char*)'
/com/ilog/cplex100.lintel/cplex100/lib/x86_rhel4.0_3.4/static_pic/libilocplex.a(ilodeflpextr.o): In function `IloDefaultLPExtractor::extractForAll(IloForAllI const*, IloCplexI::Data**)':
ilodeflpextr.cpp:(.text+0x237f): undefined reference to `IloAlgorithmI::getModelEvaluator()'
/com/ilog/cplex100.lintel/cplex100/lib/x86_rhel4.0_3.4/static_pic/libilocplex.a(ilodeflpextr.o): In function `IloDefaultLPExtractor::removeConditionalConstraint(IloConditionalConstraintI const*, IloCplexI::Data*)':
ilodeflpextr.cpp:(.text+0x2907): undefined reference to `IloAlgorithmI::getModelEvaluator()'
/com/ilog/cplex100.lintel/cplex100/lib/x86_rhel4.0_3.4/static_pic/libilocplex.a(ilodeflpextr.o): In function `IloDefaultLPExtractor::extractConditionalConstraint(IloConditionalConstraintI const*, IloCplexI::Data**)':
ilodeflpextr.cpp:(.text+0x2edf): undefined reference to `IloAlgorithmI::getModelEvaluator()'
/com/ilog/cplex100.lintel/cplex100/lib/x86_rhel4.0_3.4/static_pic/libilocplex.a(ilodeflpextr.o): In function `IloDefaultLPExtractor::extractBinaryNumConstraint(IloBinaryNumConstraintI const*, int, int**)':
#CPLEXOptimizers#DecisionOptimization