Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Compiler errors when building C++ examples

    Posted 11/13/09 11:19 PM

    Originally posted by: SystemAdmin


    [jeremyc said:]

    Hi,

    I've been running into compiler errors when I try to build the C++ examples.  I'm using cplex 9.1 and concert 2.1 (our admins have yet to upgrade) and system x86-64_RHEL3.0_3.2. 

    The java and C examples compile fine.  However, when I try to build any of the C++ examples (make ilolpex1, for example), I get the following:

    g++ -c -O -fPIC -fexceptions -DNDEBUG -DIL_STD -DILOSTRICTPOD -I/p/cl/pkgs/ilog/cplex91/include -I/p/cl/pkgs/ilog/concert21/include  /p/cl/pkgs/ilog/cplex91/examples/src/ilolpex1.cpp -o ilolpex1.o
    g++ -O -fPIC -fexceptions -DNDEBUG -DIL_STD -DILOSTRICTPOD -I/p/cl/pkgs/ilog/cplex91/include -I/p/cl/pkgs/ilog/concert21/include  ilolpex1.o -o ilolpex1 -L/p/cl/pkgs/ilog/cplex91/lib/x86-64_RHEL3.0_3.2/static_pic -lilocplex -lcplex -L/p/cl/pkgs/ilog/concert21/lib/x86-64_RHEL3.0_3.2/static_pic -lconcert -lm -lpthread
    /p/cl/pkgs/ilog/concert21/lib/x86-64_RHEL3.0_3.2/static_pic/libconcert.a(ilointcollexpr.o): In function `IloIntCollectionIndex::NotSubstituted::getMessage() const':
    ilointcollexpr.cpp:(.text+0x4b20): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
    /p/cl/pkgs/ilog/concert21/lib/x86-64_RHEL3.0_3.2/static_pic/libconcert.a(ilonumcollexpr.o): In function `IloNumCollectionIndex::NotSubstituted::getMessage() const':
    ilonumcollexpr.cpp:(.text+0x4190): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
    /p/cl/pkgs/ilog/concert21/lib/x86-64_RHEL3.0_3.2/static_pic/libconcert.a(iloanycollexpr.o): In function `IloSymbolCollectionIndex::NotSubstituted::getMessage() const':
    iloanycollexpr.cpp:(.text+0x7204): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
    /p/cl/pkgs/ilog/concert21/lib/x86-64_RHEL3.0_3.2/static_pic/libconcert.a(evaluator.o): In function `IloModelEvaluator::Unbound::getMessage() const':
    evaluator.cpp:(.text+0x66c6): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
    /p/cl/pkgs/ilog/concert21/lib/x86-64_RHEL3.0_3.2/static_pic/libconcert.a(iloenv.o): In function `char* std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_construct<char*>(char*, char*, std::allocator<char> const&, std::forward_iterator_tag)':
    iloenv.cpp:(.gnu.linkonce.t._ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag+0x34): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
    iloenv.cpp:(.gnu.linkonce.t._ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag+0x62): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, std::allocator<char> const&)'
    /p/cl/pkgs/ilog/concert21/lib/x86-64_RHEL3.0_3.2/static_pic/libconcert.a(iloforall.o): In function `IloIntIndex::NotSubstituted::getMessage() const':
    iloforall.cpp:(.text+0x4a9c): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
    /p/cl/pkgs/ilog/concert21/lib/x86-64_RHEL3.0_3.2/static_pic/libconcert.a(iloforallbase.o): In function `IloGenerator::InvalidFilter::getMessage() const':
    iloforallbase.cpp:(.text+0xa78): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
    collect2: ld returned 1 exit status
    make: *** [ilolpex1] Error 1


    Any help would be much appreciated.  Thanks!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Compiler errors when building C++ examples

    Posted 11/16/09 09:07 AM

    Originally posted by: SystemAdmin


    [MaryFenelon said:]

    What version of g++ are you using?  The x86-64_RHEL3.0_3.2 libraries will only work with g++ versions up to 3.3.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Compiler errors when building C++ examples

    Posted 11/16/09 09:31 PM

    Originally posted by: SystemAdmin


    [jeremyc said:]

    [quote author=MaryFenelon link=topic=1465.msg4152#msg4152 date=1258351649]
    What version of g++ are you using?  The x86-64_RHEL3.0_3.2 libraries will only work with g++ versions up to 3.3.

    Thank you for your reply.  I'm using g++ 4.2.4. 

    So it sounds like my options are either to downgrade to g++ 3.3 or upgrade to Concert 2.6?
    #CPLEXOptimizers
    #DecisionOptimization