[root@ip15 cumvrp_htw]# g++ -std=gnu++11 main.cpp vrp.cpp vrp.h -I/opt/ibm/ILOG/CPLEX_Studio129/cplex/include -I/opt/ibm/ILOG/CPLEX_Studio129/concert/include -L/opt/ibm/ILOG/CPLEX_Studio129/cplex/lib/x86-64_linux/static_pic -L/opt/ibm/ILOG/CPLEX_Studio129/concert/lib/x86-64_linux/static_pic -o hardprogram /tmp/cc8hewXS.o: In function `ModelCumVRPhTW(int, int, char*)': main.cpp:(.text+0x20b): undefined reference to `IloEnv::IloEnv()' main.cpp:(.text+0x223): undefined reference to `IloModel::IloModel(IloEnv, char const*)' /tmp/ccyRvwMD.o: In function `CumVRP_hTW::SolveCumVRP_hTW(IloEnv&, IloModel&, int, int)': vrp.cpp:(.text+0xa96): undefined reference to `IloCplex::IloCplex(IloModel)' /tmp/ccyRvwMD.o: In function `CumVRP_hTW::CreateVariablesCumVRP(IloEnv&, IloModel&)': vrp.cpp:(.text+0xd92): undefined reference to `IloNumVarArray::IloNumVarArray(IloEnv, long, double, double, IloNumVar::Type)' vrp.cpp:(.text+0xe32): undefined reference to `IloNumVarArray::IloNumVarArray(IloEnv, long, double, double, IloNumVar::Type)' vrp.cpp:(.text+0xe82): undefined reference to `IloNumVarArray::IloNumVarArray(IloEnv, long, double, double, IloNumVar::Type)' /tmp/ccyRvwMD.o: In function `CumVRP_hTW::CreateObjectiveCumVRP(IloEnv&, IloModel&)': vrp.cpp:(.text+0xed4): undefined reference to `IloExpr::IloExpr(IloEnv, double)' vrp.cpp:(.text+0xf67): undefined reference to `IloNumLinExprTerm::operator IloNumExprArg() const' vrp.cpp:(.text+0xf93): undefined reference to `operator/(IloNumExprArg, double)' vrp.cpp:(.text+0xfe9): undefined reference to `operator*(int, IloNumVar)' vrp.cpp:(.text+0x1002): undefined reference to `operator+(IloNumLinExprTerm, IloNumExprArg)' vrp.cpp:(.text+0x1059): undefined reference to `operator*(double, IloNumExprArg)' vrp.cpp:(.text+0x1072): undefined reference to `IloExpr::operator+=(IloNumExprArg)' vrp.cpp:(.text+0x1111): undefined reference to `IloModel::add(IloExtractable) const' /tmp/ccyRvwMD.o: In function `CumVRP_hTW::CreateConstraintsCumVRP(IloEnv&, IloModel&, IloCplex&)': vrp.cpp:(.text+0x11aa): undefined reference to `IloExpr::IloExpr(IloEnv, double)' vrp.cpp:(.text+0x120d): undefined reference to `IloExpr::operator+=(IloNumVar)' vrp.cpp:(.text+0x130c): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x1396): undefined reference to `IloExpr::IloExpr(IloEnv, double)' vrp.cpp:(.text+0x13f9): undefined reference to `IloExpr::operator+=(IloNumVar)' vrp.cpp:(.text+0x146f): undefined reference to `IloExpr::operator-=(IloNumVar)' vrp.cpp:(.text+0x1566): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x1659): undefined reference to `IloExpr::IloExpr(IloEnv, double)' vrp.cpp:(.text+0x16b3): undefined reference to `IloExpr::operator+=(IloNumVar)' vrp.cpp:(.text+0x17ca): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x1824): undefined reference to `IloExpr::IloExpr(IloEnv, double)' vrp.cpp:(.text+0x1889): undefined reference to `operator*(int, IloNumVar)' vrp.cpp:(.text+0x189e): undefined reference to `IloExpr::IloExpr(IloNumLinExprTerm)' vrp.cpp:(.text+0x1923): undefined reference to `operator>=(IloNumExprArg, IloNumExprArg)' vrp.cpp:(.text+0x195c): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x19d9): undefined reference to `operator==(IloNumExprArg, double)' vrp.cpp:(.text+0x1a12): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x1a8d): undefined reference to `IloExpr::IloExpr(IloEnv, double)' vrp.cpp:(.text+0x1af0): undefined reference to `IloExpr::operator+=(IloNumVar)' vrp.cpp:(.text+0x1b66): undefined reference to `IloExpr::operator-=(IloNumVar)' vrp.cpp:(.text+0x1bad): undefined reference to `IloExpr::operator-=(double)' vrp.cpp:(.text+0x1c91): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x1d78): undefined reference to `IloExpr::IloExpr(IloEnv, double)' vrp.cpp:(.text+0x1dd4): undefined reference to `operator*(int, IloNumVar)' vrp.cpp:(.text+0x1e34): undefined reference to `operator-(IloNumExprArg, IloNumLinExprTerm)' vrp.cpp:(.text+0x1e4d): undefined reference to `IloExpr::operator+=(IloNumExprArg)' vrp.cpp:(.text+0x1f79): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x209c): undefined reference to `operator+(IloNumExprArg, double)' vrp.cpp:(.text+0x20bd): undefined reference to `operator+(IloNumExprArg, double)' vrp.cpp:(.text+0x210d): undefined reference to `operator>=(IloNumExprArg, IloNumExprArg)' vrp.cpp:(.text+0x216f): undefined reference to `operator==(IloNumExprArg, double)' vrp.cpp:(.text+0x21b5): undefined reference to `IloIfThen::IloIfThen(IloEnv, IloConstraint, IloConstraint, char const*)' vrp.cpp:(.text+0x21ee): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x22f2): undefined reference to `operator+(IloNumExprArg, double)' vrp.cpp:(.text+0x2313): undefined reference to `operator+(IloNumExprArg, double)' vrp.cpp:(.text+0x2359): undefined reference to `operator>=(double, IloNumExprArg)' vrp.cpp:(.text+0x23d0): undefined reference to `operator==(IloNumExprArg, double)' vrp.cpp:(.text+0x2416): undefined reference to `IloIfThen::IloIfThen(IloEnv, IloConstraint, IloConstraint, char const*)' vrp.cpp:(.text+0x244f): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x24e3): undefined reference to `operator>=(IloNumExprArg, double)' vrp.cpp:(.text+0x2513): undefined reference to `IloModel::add(IloExtractable) const' vrp.cpp:(.text+0x25a7): undefined reference to `operator<=(IloNumExprArg, double)' vrp.cpp:(.text+0x25d7): undefined reference to `IloModel::add(IloExtractable) const' /tmp/ccyRvwMD.o: In function `IloFixedSizeAllocatorI::allocate(IloMemory*)': vrp.cpp:(.text._ZN22IloFixedSizeAllocatorI8allocateEP9IloMemory[_ZN22IloFixedSizeAllocatorI8allocateEP9IloMemory]+0x70): undefined reference to `IloFixedSizeAllocatorI::allocateBlock(IloMemory*)' vrp.cpp:(.text._ZN22IloFixedSizeAllocatorI8allocateEP9IloMemory[_ZN22IloFixedSizeAllocatorI8allocateEP9IloMemory]+0xe7): undefined reference to `IloAllocationList::alloc(long)' /tmp/ccyRvwMD.o: In function `IloMemory::getIndex(long) const': vrp.cpp:(.text._ZNK9IloMemory8getIndexEl[_ZNK9IloMemory8getIndexEl]+0xc0): undefined reference to `IloMemoryException::IloMemoryException()' vrp.cpp:(.text._ZNK9IloMemory8getIndexEl[_ZNK9IloMemory8getIndexEl]+0xc5): undefined reference to `IloMemoryException::~IloMemoryException()' vrp.cpp:(.text._ZNK9IloMemory8getIndexEl[_ZNK9IloMemory8getIndexEl]+0xca): undefined reference to `typeinfo for IloMemoryException' /tmp/ccyRvwMD.o: In function `IloMemory::alloc(long)': vrp.cpp:(.text._ZN9IloMemory5allocEl[_ZN9IloMemory5allocEl]+0x7b): undefined reference to `IloAllocationList::alloc(long)' /tmp/ccyRvwMD.o: In function `IloEnvI::alloc(unsigned long) const': vrp.cpp:(.text._ZNK7IloEnvI5allocEm[_ZNK7IloEnvI5allocEm]+0x1b): undefined reference to `IloEnvI::matchesAllocatorThread() const' vrp.cpp:(.text._ZNK7IloEnvI5allocEm[_ZNK7IloEnvI5allocEm]+0x3a): undefined reference to `IloEnvAllocatorThreadMismatch::IloEnvAllocatorThreadMismatch()' vrp.cpp:(.text._ZNK7IloEnvI5allocEm[_ZNK7IloEnvI5allocEm]+0x3f): undefined reference to `IloEnvAllocatorThreadMismatch::~IloEnvAllocatorThreadMismatch()' vrp.cpp:(.text._ZNK7IloEnvI5allocEm[_ZNK7IloEnvI5allocEm]+0x44): undefined reference to `typeinfo for IloEnvAllocatorThreadMismatch' vrp.cpp:(.text._ZNK7IloEnvI5allocEm[_ZNK7IloEnvI5allocEm]+0x71): undefined reference to `IloEnvAllocationDisabled::IloEnvAllocationDisabled()' vrp.cpp:(.text._ZNK7IloEnvI5allocEm[_ZNK7IloEnvI5allocEm]+0x76): undefined reference to `IloEnvAllocationDisabled::~IloEnvAllocationDisabled()' vrp.cpp:(.text._ZNK7IloEnvI5allocEm[_ZNK7IloEnvI5allocEm]+0x7b): undefined reference to `typeinfo for IloEnvAllocationDisabled' /tmp/ccyRvwMD.o: In function `operator*(double, IloNumVar)': vrp.cpp:(.text._Zmld9IloNumVar[_Zmld9IloNumVar]+0x54): undefined reference to `IloEnvI::newTerm(IloNumVarI*, double)' /tmp/ccyRvwMD.o: In function `IloConstraintArray::IloConstraintArray(IloEnv, long)': vrp.cpp:(.text._ZN18IloConstraintArrayC2E6IloEnvl[_ZN18IloConstraintArrayC5E6IloEnvl]+0x27): undefined reference to `IloExtractableArray::IloExtractableArray(IloEnv, long)' /tmp/ccyRvwMD.o: In function `IloRange::IloRange(IloEnv, double, double, char const*)': vrp.cpp:(.text._ZN8IloRangeC2E6IloEnvddPKc[_ZN8IloRangeC5E6IloEnvddPKc]+0x71): undefined reference to `IloRangeI::IloRangeI(IloEnvI*, double, double, char const*)' /tmp/ccyRvwMD.o: In function `IloRange::setExpr(IloNumExprArg)': vrp.cpp:(.text._ZN8IloRange7setExprE13IloNumExprArg[_ZN8IloRange7setExprE13IloNumExprArg]+0x89): undefined reference to `IloRangeI::setExpr(IloNumExprArg)' /tmp/ccyRvwMD.o: In function `IloObjective::IloObjective(IloEnv, IloNumExprArg, IloObjective::Sense, char const*)': vrp.cpp:(.text._ZN12IloObjectiveC2E6IloEnv13IloNumExprArgNS_5SenseEPKc[_ZN12IloObjectiveC5E6IloEnv13IloNumExprArgNS_5SenseEPKc]+0x70): undefined reference to `IloObjectiveI::IloObjectiveI(IloEnvI*, IloNumExprI*, IloObjective::Sense, char const*)' /tmp/ccyRvwMD.o: In function `IloCplex::solve()': vrp.cpp:(.text._ZN8IloCplex5solveEv[_ZN8IloCplex5solveEv]+0x14): undefined reference to `IloAlgorithm::solve() const' /tmp/ccyRvwMD.o: In function `IloCplex::setParam(IloCplex::IntParam, int)': vrp.cpp:(.text._ZN8IloCplex8setParamENS_8IntParamEi[_ZN8IloCplex8setParamENS_8IntParamEi]+0x79): undefined reference to `IloCplexI::setParam(IloCplex::IntParam, int)' /tmp/ccyRvwMD.o: In function `IloCplex::setParam(IloCplex::LongParam, long long)': vrp.cpp:(.text._ZN8IloCplex8setParamENS_9LongParamEx[_ZN8IloCplex8setParamENS_9LongParamEx]+0x7b): undefined reference to `IloCplexI::setParam(IloCplex::LongParam, long long)' /tmp/ccyRvwMD.o: In function `IloCplex::setParam(IloCplex::BoolParam, long)': vrp.cpp:(.text._ZN8IloCplex8setParamENS_9BoolParamEl[_ZN8IloCplex8setParamENS_9BoolParamEl]+0x7b): undefined reference to `IloCplexI::setParam(IloCplex::BoolParam, long)' /tmp/ccyRvwMD.o: In function `IloCplex::setParam(IloCplex::NumParam, double)': vrp.cpp:(.text._ZN8IloCplex8setParamENS_8NumParamEd[_ZN8IloCplex8setParamENS_8NumParamEd]+0x88): undefined reference to `IloCplexI::setParam(IloCplex::NumParam, double)' /tmp/ccyRvwMD.o: In function `IloCplex::exportModel(char const*) const': vrp.cpp:(.text._ZNK8IloCplex11exportModelEPKc[_ZNK8IloCplex11exportModelEPKc]+0x76): undefined reference to `IloCplexI::exportModel(char const*)' /tmp/ccyRvwMD.o:(.gcc_except_table+0x78): undefined reference to `typeinfo for IloException' /tmp/ccyRvwMD.o: In function `IloArray::IloArray(IloEnv, long)': vrp.cpp:(.text._ZN8IloArrayI14IloNumVarArrayEC2E6IloEnvl[_ZN8IloArrayI14IloNumVarArrayEC5E6IloEnvl]+0x68): undefined reference to `IloArrayI::IloArrayI(IloGenAlloc*, long, long)' /tmp/ccyRvwMD.o: In function `IloArray::IloArray(IloEnv, long)': vrp.cpp:(.text._ZN8IloArrayI13IloRangeArrayEC2E6IloEnvl[_ZN8IloArrayI13IloRangeArrayEC5E6IloEnvl]+0x68): undefined reference to `IloArrayI::IloArrayI(IloGenAlloc*, long, long)' collect2: error: ld returned 1 exit status