Hm, I tried the exact same thing with CPLEX 12.5.0.0 here and it worked:
djunglas@... static_pic <807> g++ --version
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
djunglas@... static_pic <808> make blend
g++ -O0 -c -m64 -O -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/blend.cpp -o blend.o
g++ -O0 -m64 -O -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include -L../../../lib/x86-64_sles10_4.1/static_pic -L../../../../concert/lib/x86-64_sles10_4.1/static_pic -o blend blend.o -lconcert -lilocplex -lcplex -lm -pthread
What seems odd is that your compiler command line looks different than mine (I have "-O0", you have "-O" and the flags are in different places). Are you sure you are using 12.5.0.0? I was using a fresh install of 12.5.0.0 for my test.
Could you please run this command:
g++ -E -m64 -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/blend.cpp | grep IloRtti | head -n 1
and post here what that produces? It should give
class IloRtti {
#CPLEXOptimizers#DecisionOptimization