Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX - link error

    Posted 06/20/14 04:18 PM

    Originally posted by: Eshw157


    Hi,

    I'm getting a lot of undefined references while building a c++ application that uses CPLEX concert technology in Linux. It happens with building the example blend.cpp too. Have copied a few lines below.

    ../opt/ibm/ILOG/CPLEX_Studio126/concert/lib/x86-64_linux/static_pic/libconcert.a(ilosolution.o): In function `IloSavedIntSetVarI::display(std::basic_ostream<char, std::char_traits<char> >&) const':
    ilosolution.cpp:(.text+0xa79d): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
    ilosolution.cpp:(.text+0xa7f9): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
     

    Could you please help?

    Thanks.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX - link error

    Posted 06/20/14 05:05 PM

    Have you included -DIL_STD as one of your compiler options?  Are you using the makefiles that are included with the installation?  See the <COS_INSTALL_DIR>/cplex/readmeUnix.html file.  The example makefile lives at <COS_INSTALL_DIR>/cplex/examples/x86-64_linux/static_pic/Makefile (for 64-bit Linux on Intel) and contains the "Compiler options" and "Link options" sections.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX - link error

    Posted 06/20/14 06:08 PM

    Originally posted by: Eshw157


    Thanks for the reply.

    Yes, I have included the compiler option. I'm somewhat familiar with the compiler and link options because I was running my application with CPLEX before successfully. I moved to a different computer, did the installation again and I can't get it running.

    And, for blend.cpp I used the makefile that came with the installation.

    Do I have to install a higher version of g++?

    Thanks.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX - link error

    Posted 06/20/14 07:17 PM

    What version of g++ do you have?  According to the system requirements you need 4.3.4 (click on the Linux link and then the "Supported Software" tab).


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX - link error

    Posted 06/22/14 03:11 PM

    Originally posted by: Eshw157


    Sorry for the delayed response. 

    I was having an older version of g++ and the problem was due to that. Your reply was really helpful. Thank you.


    #CPLEXOptimizers
    #DecisionOptimization