Originally posted by: 6XSR_Adarsh_Nagarajan
I have been using CPLEX for solving the optimization problems using concert technology since few months. It was all fine until the most recent mac os update. I have an optimization problem which was running perfectly until the mac update.
Initially I use the following command
================================================================================================================
clang++ -O0 -c -m64 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I/Users/adarshnagarajan/Applications/IBM/ILOG/CPLEX_Studio_Preview1251/cplex/include -I/Users/adarshnagarajan/Applications/IBM/ILOG/CPLEX_Studio_Preview1251/concert/include /Users/adarshnagarajan/Dropbox/Lab-System/CPLEX/Implementation/From-Dat/24Hours-15min-wLifeCyclewPenalty-mod/final.cpp -o final.o
===============================================================================================================
final.o gets created. But after this I run the command mentioned below to generate the executable.
===================================================================================================================
clang++ -O0 -m64 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I/Users/adarshnagarajan/Applications/IBM/ILOG/CPLEX_Studio_Preview1251/cplex/include -I/Users/adarshnagarajan/Applications/IBM/ILOG/CPLEX_Studio_Preview1251/concert/include -L/Users/adarshnagarajan/Applications/IBM/ILOG/CPLEX_Studio_Preview1251/cplex/lib/x86-64_osx/static_pic -L/Users/adarshnagarajan/Applications/IBM/ILOG/CPLEX_Studio_Preview1251/concert/lib/x86-64_osx/static_pic -o final /Users/adarshnagarajan/Dropbox/Lab-System/CPLEX/Implementation/From-Dat/24Hours-15min-wLifeCyclewPenalty-mod/final.o -lconcert -lilocplex -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit
======================================================================================================================
Whenever I do that I get the error. I get the same error even after replacing clang++ with g++.
===================================================================================================================
Undefined symbols for architecture x86_64:
"std::string::c_str() const", referenced from:
IloGetString(std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&) in libconcert.a(iloenv.o)
"std::string::length() const", referenced from:
IloGetString(std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&) in libconcert.a(iloenv.o)
=====================================================================================================================
I need help on this aspect.
#CPLEXOptimizers#DecisionOptimization