Originally posted by: Iannis
Dear all,
So far I was using CPLEX v12.2 under Visual Studio 2010 on a 32-bit machine.
I switched to CPLEX v12.3 with Visual Studio 2010 under Windows 7 Prof (64 bit).
In both cases I am using Concert technology.
I followed the regular project creation process described in the instructions. Linking fails under the Win32 Active Solution Platform and generates messages such as:
1>CAPX01.obj : error LNK2001: unresolved external symbol "public: __thiscall IloNumArray::IloNumArray(class IloEnv,long)" (??0IloNumArray@@QAE@VIloEnv@@J@Z)
1>CAPX01.obj : error LNK2001: unresolved external symbol "public: __thiscall IloEnvI::~IloEnvI(void)" (??1IloEnvI@@QAE@XZ)
When I change the Active Solution Platform to x64, the project compiles and links OK, but with warnings as:
1>C:\Program Files\IBM\ILOG\CPLEX_Studio_Academic123\cplex\include\ilcplex/ilocplexi.h(3091): warning C4244: 'argument' : conversion from 'IloInt' to 'CPXINT', possible loss of data
1>C:\Program Files\IBM\ILOG\CPLEX_Studio_Academic123\cplex\include\ilcplex/ilocplexi.h(3831): warning C4244: 'return' : conversion from 'const IloBool' to 'int', possible loss of data
1>..\CAPX01.cpp(117): warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
during compilation and warnings as:
1>concert.lib(iloalg.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloalg.obj)' or at 'C:\Users\ifragkos\Documents\Visual Studio 2010\Projects\HorizonDec\x64\Release\concert.pdb'; linking object as if no debug info
1>concert.lib(iloallocator.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloallocator.obj)' or at 'C:\Users\ifragkos\Documents\Visual Studio 2010\Projects\HorizonDec\x64\Release\concert.pdb'; linking object as if no debug info
during linking.
The algorithm then runs but it is very slow (twice or three times as slow). Any idea why this happens?
Thank you in advance,
Iannis
#CPLEXOptimizers#DecisionOptimization