Originally posted by: SystemAdmin
[ammoun84 said:]
hello,
i'm working with cpp and using the ilog cplex..
i compiled my cpp code,and i didn't find error, but some errors related to Cplex appears and i can't understand them ..can someone help me please to know how to solve them..
[color=red]Compiling...
dual.cpp
Linking...
dual.obj : error LNK2001: unresolved external symbol "public: static void __cdecl IloEnvObjectI::operator delete(void *,class IloEnv const &)" (??3IloEnvObjectI@@SAXPAXABVIloEnv@@@Z)
dual.obj : error LNK2001: unresolved external symbol "public: double __thiscall IloAlgorithm::getValue(class IloNumVar)const " (?getValue@IloAlgorithm@@QBENVIloNumVar@@@Z)
dual.obj : error LNK2001: unresolved external symbol "public: double __thiscall IloAlgorithm::getObjValue(void)const " (?getObjValue@IloAlgorithm@@QBENXZ)
dual.obj : error LNK2001: unresolved external symbol "public: __thiscall IloCplex::IloCplex(class IloModel)" (??0IloCplex@@QAE@VIloModel@@@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloConstraint __cdecl operator<=(class IloNumExprArg,class IloNumExprArg)" (??N@YA?AVIloConstraint@@VIloNumExprArg@@0@Z)<br />dual.obj : error LNK2001: unresolved external symbol "public: class IloExpr & __thiscall IloExpr::operator+=(double)" (??YIloExpr@@QAEAAV0@N@Z)
dual.obj : error LNK2001: unresolved external symbol "public: class IloExpr & __thiscall IloExpr::operator+=(class IloNumExprArg)" (??YIloExpr@@QAEAAV0@VIloNumExprArg@@@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloNumExprArg __cdecl operator*(double,class IloNumExprArg)" (??D@YA?AVIloNumExprArg@@NV0@@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloNumExprArg __cdecl operator-(class IloNumExprArg,double)" (??G@YA?AVIloNumExprArg@@V0@N@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloRange __cdecl operator<=(class IloNumExprArg,double)" (??N@YA?AVIloRange@@VIloNumExprArg@@N@Z)<br />dual.obj : error LNK2001: unresolved external symbol "class IloNumLinExprTerm __cdecl operator*(long,class IloNumVar)" (??D@YA?AVIloNumLinExprTerm@@JVIloNumVar@@@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloRange __cdecl operator==(class IloNumExprArg,double)" (??8@YA?AVIloRange@@VIloNumExprArg@@N@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloConstraint __cdecl operator>=(class IloNumExprArg,class IloNumExprArg)" (??P@YA?AVIloConstraint@@VIloNumExprArg@@0@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloConstraint __cdecl operator==(class IloNumExprArg,class IloNumExprArg)" (??8@YA?AVIloConstraint@@VIloNumExprArg@@0@Z)
dual.obj : error LNK2001: unresolved external symbol "public: class IloExpr & __thiscall IloExpr::operator+=(class IloNumVar)" (??YIloExpr@@QAEAAV0@VIloNumVar@@@Z)
dual.obj : error LNK2001: unresolved external symbol "public: class IloExtractable __thiscall IloModel::add(class IloExtractable)const " (?add@IloModel@@QBE?AVIloExtractable@@V2@@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloNumExprArg __cdecl operator+(class IloNumExprArg,class IloNumExprArg)" (??H@YA?AVIloNumExprArg@@V0@0@Z)
dual.obj : error LNK2001: unresolved external symbol "public: class IloExpr & __thiscall IloExpr::operator+=(class IloNumLinExprTerm)" (??YIloExpr@@QAEAAV0@VIloNumLinExprTerm@@@Z)
dual.obj : error LNK2001: unresolved external symbol "class IloNumLinExprTerm __cdecl operator*(class IloNumVar,long)" (??D@YA?AVIloNumLinExprTerm@@VIloNumVar@@J@Z)
dual.obj : error LNK2001: unresolved external symbol "public: __thiscall IloExpr::IloExpr(class IloEnv,double)" (??0IloExpr@@QAE@VIloEnv@@N@Z)
dual.obj : error LNK2001: unresolved external symbol "public: __thiscall IloNumVarArray::IloNumVarArray(class IloEnv,long,double,double,enum IloNumVar::Type)" (??0IloNumVarArray@@QAE@VIloEnv@@JNNW4Type@IloNumVar@@@Z)
dual.obj : error LNK2001: unresolved external symbol "public: __thiscall IloModel::IloModel(class IloEnv,char const *)" (??0IloModel@@QAE@VIloEnv@@PBD@Z)
dual.obj : error LNK2001: unresolved external symbol "public: __thiscall IloArrayI::IloArrayI(class IloEnvI *,long,long)" (??0IloArrayI@@QAE@PAVIloEnvI@@JJ@Z)
dual.obj : error LNK2001: unresolved external symbol "public: __thiscall IloEnv::IloEnv(void)" (??0IloEnv@@QAE@XZ)
dual.obj : error LNK2001: unresolved external symbol "public: __thiscall IloEnvI::~IloEnvI(void)" (??1IloEnvI@@QAE@XZ)
dual.obj : error LNK2001: unresolved external symbol "public: struct IloFixedSizeAllocatorI::Cell * __thiscall IloFixedSizeAllocatorI::allocateBlock(class IloMemory *)" (?allocateBlock@IloFixedSizeAllocatorI@@QAEPAUCell@1@PAVIloMemory@@@Z)
dual.obj : error LNK2001: unresolved external symbol "private: long __thiscall IloMemory::getIndex(long)const " (?getIndex@IloMemory@@ABEJJ@Z)
dual.obj : error LNK2001: unresolved external symbol "private: void __thiscall IloArrayI::grow(long)" (?grow@IloArrayI@@AAEXJ@Z)
dual.obj : error LNK2001: unresolved external symbol "public: void __thiscall IloArrayI::clear(void)" (?clear@IloArrayI@@QAEXXZ)
dual.obj : error LNK2001: unresolved external symbol "public: __thiscall IloObjectiveI::IloObjectiveI(class IloEnvI *,class IloNumExprI *,enum IloObjective::Sense,char const *)" (??0IloObjectiveI@@QAE@PAVIloEnvI@@PAVIloNumExprI@@W4Sense@IloObjective
@@PBD@Z)
dual.obj : error LNK2001: unresolved external symbol "public: void __thiscall IloCplexI::exportModel(char const *)" (?exportModel@IloCplexI@@QAEXPBD@Z)
Debug/dual.exe : fatal error LNK1120: 31 unresolved externals
Error executing link.exe.
dual.exe - 32 error(s), 0 warning(s)
The following environment variables were not found
$(SOFTDIR)
$(ILOG)
$(CPLEX)[/color]
#ConstraintProgramming-General#DecisionOptimization