Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Re: Compiling error for C++ makefile on Linux x86-64_linux

    Posted 04/07/14 11:37 AM

    Originally posted by: GopalEaswaran


    Hi all, 

    I tried compiling the makefile for the examples using C++. The c version of the examples compile fine and they execute without any errors. However, the C++ version provides the following error. I included the code -stdlib=libstdc++ to the flags, as mentioned in a prior thread.

    CCOPT = -stdlib=libstdc++ -m64 -O -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD

    CCLNFLAGS = -stdlib=libstdc++ -lconcert -lilocplex -lcplex -lm -lpthread

     

    I am attaching the makefile and the screen output.

    I thank you for your help in advance. 

     

    Thanks,

    Gopal

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Compiling error for C++ makefile on Linux x86-64_linux

    Posted 04/11/14 02:35 AM

    Are you sure you edited and are using the right Makefile? In your output.txt I don't see any mention of -stdlib=libstdc++. If you are using the correctly updated Makefile then this option should appear on the compiler as well as the linker command line.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Compiling error for C++ makefile on Linux x86-64_linux

    Posted 04/27/14 11:38 AM

    Originally posted by: GopalakrishnanEaswaran


    Hi Daniel, 

    Thank you for the reply. Yes, it is the correct make file. After much fight, I installed the CPLEX 12.5 and it compiles and works fine. I am sure the error has to do with linking the correct version of the stdlib with the compiler For now, I am going with 12.5. Thank you again for your reply. 

    Gopal


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Compiling error for C++ makefile on Linux x86-64_linux

    Posted 04/29/14 04:34 AM

    I don't see how you could be using the correct makefile if the log output from your compilation did not contain '-stdlib=libstdc++'. Since this was missing from the compiler and linker commands it means you were not doing what you intended to do.


    #CPLEXOptimizers
    #DecisionOptimization