Topic
  • 2 replies
  • Latest Post - ‏2012-12-11T14:35:28Z by SystemAdmin
SystemAdmin
SystemAdmin
554 Posts

Pinned topic Trouble linking with CP Optimizer

‏2012-12-11T00:15:31Z |
Hi,

I've been trying to run a fairly simple model for two hours now and can't find what I'm doing wrong. It compiles fine, but linking results in a huge cavalcade of errors:


/usr/bin/make all /usr/bin/cmake -H/home/sebastian/cppr -B/home/sebastian/cppr --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/sebastian/cppr/CMakeFiles /home/sebastian/cppr/CMakeFiles/progress.marks /usr/bin/make -f CMakeFiles/Makefile2 all make[1]: Entering directory `/home/sebastian/cppr
' /usr/bin/make -f src/CMakeFiles/cppr.dir/build.make src/CMakeFiles/cppr.dir/depend make[2]: Entering directory `/home/sebastian/cppr
' cd /home/sebastian/cppr && /usr/bin/cmake -E cmake_depends 
"Unix Makefiles" /home/sebastian/cppr /home/sebastian/cppr/src /home/sebastian/cppr /home/sebastian/cppr/src /home/sebastian/cppr/src/CMakeFiles/cppr.dir/DependInfo.cmake --color= clang: warning: argument unused during compilation: 
'-std=c++0x' make[2]: Leaving directory `/home/sebastian/cppr
' /usr/bin/make -f src/CMakeFiles/cppr.dir/build.make src/CMakeFiles/cppr.dir/build make[2]: Entering directory `/home/sebastian/cppr
' Linking CXX executable ../bin/cppr cd /home/sebastian/cppr/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/cppr.dir/link.txt --verbose=0 /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(ilosolverai.o): In function `IloCPI::~IloCPI()
': ilosolver.cpp:(.text+0x1ed5d): undefined reference to `CPXcloseCPLEX
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(ilosolverai.o): In function `IloCPI::~IloCPI()
': ilosolver.cpp:(.text+0x1f33c): undefined reference to `CPXcloseCPLEX
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(ilosolverai.o): In function `IloCPI::~IloCPI()
': ilosolver.cpp:(.text+0x1f91c): undefined reference to `CPXcloseCPLEX
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(ilosolverai.o): In function `IloCPI::IloCPI(IloEnvI*, IlcCPOManagerI*)
': ilosolver.cpp:(.text+0x2fe95): undefined reference to `CPXopenCPLEX
' ilosolver.cpp:(.text+0x2fed8): undefined reference to `CPXgeterrorstring
' ilosolver.cpp:(.text+0x3001e): undefined reference to `CPXEclocksync
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(ilosolverai.o): In function `IloCPI::IloCPI(IloEnvI*, IlcCPOManagerI*)
': ilosolver.cpp:(.text+0x33115): undefined reference to `CPXopenCPLEX
' ilosolver.cpp:(.text+0x33158): undefined reference to `CPXgeterrorstring
' ilosolver.cpp:(.text+0x3329e): undefined reference to `CPXEclocksync
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_d23c2eeb661d1446411a859fec40fd5d()
': iloslpi.cpp:(.text+0x22a): undefined reference to `CPXgetnumrows
' iloslpi.cpp:(.text+0x297): undefined reference to `CPXlpopt
' iloslpi.cpp:(.text+0x2eb): undefined reference to `CPXgetstat
' iloslpi.cpp:(.text+0x320): undefined reference to `CPXpresolve
' iloslpi.cpp:(.text+0x341): undefined reference to `CPXgetredlp
' iloslpi.cpp:(.text+0x36e): undefined reference to `CPXgetobjoffset
' iloslpi.cpp:(.text+0x381): undefined reference to `CPXchgprobtype
' iloslpi.cpp:(.text+0x392): undefined reference to `CPXlpopt
' iloslpi.cpp:(.text+0x3d1): undefined reference to `CPXgetnumcols
' iloslpi.cpp:(.text+0x3fe): undefined reference to `CPXgetx
' iloslpi.cpp:(.text+0x41b): undefined reference to `CPXuncrushx
' iloslpi.cpp:(.text+0x433): undefined reference to `CPXgetobjval
' iloslpi.cpp:(.text+0x4d7): undefined reference to `CPXchgprobtype
' iloslpi.cpp:(.text+0x4ea): undefined reference to `CPXlpopt
' iloslpi.cpp:(.text+0x507): undefined reference to `CPXgetnumcols
' iloslpi.cpp:(.text+0x527): undefined reference to `CPXgetx
' iloslpi.cpp:(.text+0x541): undefined reference to `CPXgetobjval
' iloslpi.cpp:(.text+0x561): undefined reference to `CPXgetnumcols
' iloslpi.cpp:(.text+0x584): undefined reference to `CPXgetx
' iloslpi.cpp:(.text+0x5a3): undefined reference to `CPXgetdj
' iloslpi.cpp:(.text+0x5bd): undefined reference to `CPXgetobjval
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `callbackCheckIterationLimit(cpxenv const*, void*, int, void*)
': iloslpi.cpp:(.text+0x6df): undefined reference to `CPXgetcallbackinfo
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::endCPLEX()
': iloslpi.cpp:(.text+0x82d): undefined reference to `CPXfreeprob
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::checkRowLimit()
': iloslpi.cpp:(.text+0x8a4): undefined reference to `CPXgetnumrows
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_61ec3be3eb2b591e8665fba55c11fb89(double, void**, double, void*, 

double)
': iloslpi.cpp:(.text+0x9ca): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0xa4e): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0xaa0): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_61ec3be3eb2b591e8665fba55c11fb89(double, void**, double, void*)
': iloslpi.cpp:(.text+0xbcc): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0xc5c): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0xcae): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_2c776827d75edc57a6b4609848253d90(double, double*, void**, 

double)
': iloslpi.cpp:(.text+0xd8d): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0xe28): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_bbb4cdffcfb21aadeecbcae702d97bd4()
': iloslpi.cpp:(.text+0x100c): undefined reference to `CPXcreateprob
' iloslpi.cpp:(.text+0x102b): undefined reference to `CPXsetintparam
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::setVariableValue(void*, 

double)
': iloslpi.cpp:(.text+0x16b0): undefined reference to `CPXchgbds
' iloslpi.cpp:(.text+0x16d8): undefined reference to `CPXchgbds
' iloslpi.cpp:(.text+0x1726): undefined reference to `CPXnewcols
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_77c086150141ddaa4a7f8c85980c5f1a(void*, double, double, 

char const*)
': iloslpi.cpp:(.text+0x189b): undefined reference to `CPXnewcols
' make[2]: Leaving directory `/home/sebastian/cppr
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_c219ffb8444d0f14e2759ad67f769d17(void*, 

char const*)
': iloslpi.cpp:(.text+0x1c2c): undefined reference to `CPXnewcols
' iloslpi.cpp:(.text+0x1cb4): undefined reference to `CPXnewcols
' make[1]: Leaving directory `/home/sebastian/cppr
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_dc7fca214346bbb9eeb96a2fd6334b09(void*, void*, double, double, 

double)
': iloslpi.cpp:(.text+0x1e89): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x1ebb): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x1edc): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x1f13): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x1f33): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x1f54): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_b9bd34269e285012a3c18edec15c7781(void*, void*, double, double, void*, double, void*)
': iloslpi.cpp:(.text+0x212a): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x214c): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x216e): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x218e): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x21ad): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_0aa51721dd9a9140bfe4a32288520096(void*, void*, double, double, void*)
': iloslpi.cpp:(.text+0x23f6): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x2418): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x243a): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x2459): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_b9bd34269e285012a3c18edec15c7781(void*, void*, void*, double, void*, double, void*)
': iloslpi.cpp:(.text+0x2708): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x272a): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x274c): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x276e): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x278f): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x27ae): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_0aa51721dd9a9140bfe4a32288520096(void*, void*, double, double, double, void*)
': iloslpi.cpp:(.text+0x2a26): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x2a46): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x2a68): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x2a87): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_8ab0331c7055c4c8571af6db205595a3(void*, void*, void*, double, void*)
': iloslpi.cpp:(.text+0x2cf5): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x2d19): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x2d3b): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x2d60): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x2d80): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::declareLEqConstraint(double, double*, void**, double, void*, 

double)
': iloslpi.cpp:(.text+0x2f3b): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x2fcb): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x301d): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_61ec3be3eb2b591e8665fba55c11fb89(double, void**, 

double)
': iloslpi.cpp:(.text+0x30f8): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x317f): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::setVariableRange(void*, double, 

double)
': iloslpi.cpp:(.text+0x3322): undefined reference to `CPXgetub
' iloslpi.cpp:(.text+0x3374): undefined reference to `CPXchgbds
' iloslpi.cpp:(.text+0x33dc): undefined reference to `CPXnewcols
' iloslpi.cpp:(.text+0x3464): undefined reference to `CPXgetlb
' iloslpi.cpp:(.text+0x34b2): undefined reference to `CPXchgbds
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_61ec3be3eb2b591e8665fba55c11fb89(double, double*, void**, double, void*)
': iloslpi.cpp:(.text+0x3587): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x3626): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x3678): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_ded37e422e0ad96244ce3e43f247da2a(void*, void*, double, double, 

double)
': iloslpi.cpp:(.text+0x37de): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x37fe): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x381d): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_0aa51721dd9a9140bfe4a32288520096(void*, void*, void*, double, void*)
': iloslpi.cpp:(.text+0x3a37): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x3a59): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x3a7b): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x3a9d): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x3abc): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_f1beae3b624c11605f44ba8db47fe26a(void*, void*, void*, double, double, double, 

double)
': iloslpi.cpp:(.text+0x3cdc): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x3cfc): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x3d1c): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x3d3b): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::declareGEqConstraint(double, double*, void**, double, void*, 

double)
': iloslpi.cpp:(.text+0x3ebb): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x3f4b): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x3f9d): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_2c776827d75edc57a6b4609848253d90(double, double*, void**, void*)
': iloslpi.cpp:(.text+0x40cb): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x4168): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x41a8): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_61ec3be3eb2b591e8665fba55c11fb89(double, double*, void**, double, void*, 

double)
': iloslpi.cpp:(.text+0x42eb): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x437b): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x43cd): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_61ec3be3eb2b591e8665fba55c11fb89(double, double*, void**, void*)
': iloslpi.cpp:(.text+0x44fb): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x4598): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x45d8): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_61ec3be3eb2b591e8665fba55c11fb89(double, void**, void*)
': iloslpi.cpp:(.text+0x4708): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x479a): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x47da): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_10b76024a2b9970f91c0427c610e2542(void*, void*, void*, double, double, double, 

double)
': iloslpi.cpp:(.text+0x498c): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x49ac): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x49cc): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x49eb): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::declareGEqConstraint(double, void**, double, void*, 

double)
': iloslpi.cpp:(.text+0x4b6a): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x4bee): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x4c40): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_f443a933ab8fb0a97b2c0e7569d1b3ea(void*, void*, double, double, 

double)
': iloslpi.cpp:(.text+0x4d9e): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x4dbe): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x4ddd): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::declareLEqConstraint(double, void**, double, void*, 

double)
': iloslpi.cpp:(.text+0x533a): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x53be): undefined reference to `CPXchgcoef
' iloslpi.cpp:(.text+0x5410): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_8fc720be18ca0aa255f173885f2a1e8b(void*, double, double, long, 

char const*)
': iloslpi.cpp:(.text+0x54f6): undefined reference to `CPXchgobj
' iloslpi.cpp:(.text+0x557c): undefined reference to `CPXchgobj
' iloslpi.cpp:(.text+0x55e8): undefined reference to `CPXchgobjsen
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_61ec3be3eb2b591e8665fba55c11fb89(double, double*, void**, 

double)
': iloslpi.cpp:(.text+0x566d): undefined reference to `CPXnewrows
' iloslpi.cpp:(.text+0x5708): undefined reference to `CPXchgcoef
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_a021bbbaa64c7e4317a0c2d202422560(void*, 

char const*, 

char const*)
': iloslpi.cpp:(.text+0x5833): undefined reference to `CPXchgname
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_36f2b213a1b16dbe816778470d22238a(

char const*)
': iloslpi.cpp:(.text+0x97): undefined reference to `CPXwritesol
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::_0d8c7221e3ad477e989ded7b515958bd(

char const*)
': iloslpi.cpp:(.text+0xb7): undefined reference to `CPXwriteprob
' /home/sebastian/cppr/../cpx_studio_12.2/cpoptimizer/lib/x86-64_sles10_4.1/static_pic/libcp.a(iloslpi.o): In function `_64c7d68397ac38450ee3c52173785c9c::setITLimit(

long)
': iloslpi.cpp:(.text+0x65e): undefined reference to `CPXsetlpcallbackfunc
' iloslpi.cpp:(.text+0x674): undefined reference to `CPXsetlpcallbackfunc
' clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [bin/cppr] Error 1 make[1]: *** [src/CMakeFiles/cppr.dir/all] Error 2 make: *** [all] Error 2


I've done this before, so I copied my link/include paths over from another project, and I'm confident they're correct. I'm linking with -lilocplex -lcp -lconcert as well as -DIL_STD and friends. Just from looking at the errors, is it obvious to anyone where I should be looking for problems? I'm running out of ideas.

Thanks!
Updated on 2012-12-11T14:35:28Z at 2012-12-11T14:35:28Z by SystemAdmin
  • rdumeur
    rdumeur
    102 Posts

    Re: Trouble linking with CP Optimizer

    ‏2012-12-11T09:02:10Z  
    Dear ratpack,

    This very strange. Could you please display the linker command line? For I cannot see any occurrence of -lcplex and -lcpo in the trace included in your message.
    I see that you compile with clang. Could you please check that you can compile the examples of the CPO distribution with this compiler?
    Please note that IBM ILOG CP Optimizer requirements in:

    http://www-01.ibm.com/software/integration/optimization/cp-optimizer/reqs/

    do not include clang in the list of supported compilers.

    Cheers,
  • SystemAdmin
    SystemAdmin
    554 Posts

    Re: Trouble linking with CP Optimizer

    ‏2012-12-11T14:35:28Z  
    • rdumeur
    • ‏2012-12-11T09:02:10Z
    Dear ratpack,

    This very strange. Could you please display the linker command line? For I cannot see any occurrence of -lcplex and -lcpo in the trace included in your message.
    I see that you compile with clang. Could you please check that you can compile the examples of the CPO distribution with this compiler?
    Please note that IBM ILOG CP Optimizer requirements in:

    http://www-01.ibm.com/software/integration/optimization/cp-optimizer/reqs/

    do not include clang in the list of supported compilers.

    Cheers,
    Thanks for the swift reply!

    So, I turned on my computer this morning and tried to reproduce the error to show you the linker invocation, and everything ran through just fine just like it should. I don't know what to tell you, after struggling with a mystery error for a whole afternoon, it disappeared. I'll post back if I experience the same problem again.

    For the record, clang + Cplex/CPO have been working very well together for me so far!

    Sebastian