You are correct about that I am trying to use the 64bit Linux port for CPLEX. I added the flag -DCPXSIZE_BITS=64 as you suggested... but I had a few more errors. I'll put them out one at a time, and some changes I made along the way to try to overcome them, though I am rather pessimistic about the changes I made after the first thing failed being a good idea, never mind if they're even valid.
1. In examples directory, compiling with pgc++ -DCPXSIZE_BITS=64
ansi: Enable optimizations using ANSI C type-based pointer disambiguation
Obviously, I don't want to make this question into a question about pgcpp, but just in case that makes sense. I tried with and without -alias=ansi and -alias=traditional. The blend example compiled with any of those options.
3. Sorry to add to the issues with item #2 but when I realized I had done that, I thought there might something I did wrong that would be obvious. Now, onto the linking. Here is the output, which is pretty long and looks fairly repetitive to me. This is with -alias=traditional, which I think might be analogous to -fno-strict-aliasing. Or maybe not, let me know what you think!
pgcpp -O0 -DCPXSIZE_BITS=64 -alias=traditional -m64 -O -fPIC --exceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include blend.o -o blend -L../../../lib/x86-64_sles10_4.1/static_pic -lilocplex -lcplex -L../../../../concert/lib/x86-64_sles10_4.1/static_pic -lconcert -lm
blend.o: In function `define_data(IloEnv)':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)'
blend.o:/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: more undefined references to `IloNumArray::__ct(IloEnv, long, double, IloVarArgsNum,...)' follow
blend.o: In function `define_data(IloEnv)':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:44: undefined reference to `IloNumArray::__ct(IloEnv, long, double)'
blend.o: In function `main':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:73: undefined reference to `IloEnv::__ct(void)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:79: undefined reference to `IloModel::__ct(IloEnv, char const *)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:81: undefined reference to `__builtin_inf'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:81: undefined reference to `IloNumVarArray::__ct(IloEnv, long, double, double, IloNumVar::Type)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:82: undefined reference to `__builtin_inf'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:82: undefined reference to `IloNumVarArray::__ct(IloEnv, long, double, double, IloNumVar::Type)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:83: undefined reference to `__builtin_inf'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:83: undefined reference to `IloNumVarArray::__ct(IloEnv, long, double, double, IloNumVar::Type)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:84: undefined reference to `IloNumVarArray::__ct(IloEnv, long, double, double, IloNumVar::Type)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:88: undefined reference to `IloScalProd(IloNumArray, IloNumVarArray)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:88: undefined reference to `IloScalProd(IloNumArray, IloNumVarArray)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:88: undefined reference to `__pl__F13IloNumExprArgT1'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:88: undefined reference to `IloScalProd(IloNumArray, IloNumVarArray)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:88: undefined reference to `__pl__F13IloNumExprArgT1'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:88: undefined reference to `IloScalProd(IloNumArray, IloNumVarArray)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:88: undefined reference to `__pl__F13IloNumExprArgT1'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:88: undefined reference to `IloModel::add( const(IloExtractable))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:93: undefined reference to `IloNumVar::__ct(IloEnv, double, double, IloNumVar::Type, char const *)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:97: undefined reference to `IloSum(IloNumVarArray)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:97: undefined reference to `operator==(IloNumExprArg, double)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:97: undefined reference to `IloModel::add( const(IloExtractable))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:101: undefined reference to `IloScalProd(IloNumArray, IloNumVarArray)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:101: undefined reference to `__pl__F13IloNumExprArgT1'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:101: undefined reference to `IloScalProd(IloNumArray, IloNumVarArray)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:101: undefined reference to `__pl__F13IloNumExprArgT1'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:101: undefined reference to `IloScalProd(IloNumArray, IloNumVarArray)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:101: undefined reference to `__pl__F13IloNumExprArgT1'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:101: undefined reference to `__eq__F13IloNumExprArgT1'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:101: undefined reference to `IloModel::add( const(IloExtractable))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:107: undefined reference to `IloCplex::__ct(IloModel)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:108: undefined reference to `IloAlgorithm::setOut(std::basic_ostream<char,std::char_traits<char>> &)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:109: undefined reference to `IloAlgorithm::setWarning(std::basic_ostream<char,std::char_traits<char>> &)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:116: undefined reference to `IloAlgorithm::getObjValue( const(void))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:119: undefined reference to `IloAlgorithm::getValue( const(IloNumVar))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:122: undefined reference to `IloAlgorithm::getValue( const(IloNumVar))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:125: undefined reference to `IloAlgorithm::getValue( const(IloNumVar))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:128: undefined reference to `IloAlgorithm::getValue( const(IloNumVar))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../examples/src/cpp/blend.cpp:131: undefined reference to `IloAlgorithm::getValue( const(IloNumVar))'
blend.o:(.gcc_except_table+0x1f8): undefined reference to `__T_12IloException'
blend.o: In function `IloFixedSizeAllocatorI::allocate(IloMemory *)':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloallocator.h:116: undefined reference to `IloFixedSizeAllocatorI::allocateBlock(IloMemory *)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloallocator.h:122: undefined reference to `IloAllocationList::alloc(long)'
blend.o: In function `IloMemory::getIndex( const(long))':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloallocator.h:182: undefined reference to `IloMemoryException::__ct(void)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloallocator.h:182: undefined reference to `__T_18IloMemoryException'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloallocator.h:182: undefined reference to `IloMemoryException::__dt(void)'
blend.o: In function `IloMemory::alloc(long)':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloallocator.h:203: undefined reference to `IloAllocationList::alloc(long)'
blend.o: In function `IloEnvI::alloc( const(unsigned long))':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:739: undefined reference to `IloEnvI::matchesAllocatorThread( const(void))'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:741: undefined reference to `IloEnvAllocatorThreadMismatch::__ct(void)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:741: undefined reference to `__T_29IloEnvAllocatorThreadMismatch'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:741: undefined reference to `IloEnvAllocatorThreadMismatch::__dt(void)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:743: undefined reference to `IloEnvAllocationDisabled::__ct(void)'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:743: undefined reference to `__T_24IloEnvAllocationDisabled'
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:743: undefined reference to `IloEnvAllocationDisabled::__dt(void)'
blend.o: In function `IloEnv::end(void)':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:1705: undefined reference to `IloEnvI::__dt(void)'
blend.o: In function `IloArray<IloNumArray>::__ct(IloEnv, long)':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloenv.h:2161: undefined reference to `IloArrayI::__ct(IloGenAlloc *, long, long)'
blend.o: In function `IloNumExprArray::__ct(IloEnv, long)':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/iloexpression.h:188: undefined reference to `IloExtractableArray::__ct(IloEnv, long)'
blend.o: In function `__CPR69____ct__12IloObjectiveF6IloEnv13IloNumExprArgQ2_J6J5SensePCc':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../../concert/include/ilconcert/ilolinear.h:1458: undefined reference to `IloObjectiveI::__ct(IloEnvI *, IloNumExprI *, IloObjective::Sense, char const *)'
blend.o: In function `IloCplex::solve(void)':
/opt/ibm/ILOG/CPLEX_Studio124/cplex/examples/x86-64_sles10_4.1/static_pic/../../../include/ilcplex/ilocplexi.h:2938: undefined reference to `IloAlgorithm::solve( const(void))'
make: *** [blend] Error 2