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