If you compile one of the delivered examples using the makefile shipped with cplex, you could see that the compilation is done the following way:
g++ -O0 -c -m64 -O -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include ../../../examples/src/cpp/fixcost1.cpp -o fixcost1.o
g++ -O0 -m64 -O -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include -L../../../lib/x86-64_linux/static_pic -L../../../../concert/lib/x86-64_linux/static_pic -o fixcost1 fixcost1.o -lconcert -lilocplex -lcplex -lm -lpthread -ldl
Note the the compiler is run twice: first to create object file, second to link. So I suggest to simply replace fixcost1 by name of your program, fix the paths in -I and -L options, and it should compile.
The errors you see are due to the missing -lconcert -ilocplex and -lcplex. The other options are important too though. I suggest to start with the exact copy and then make changes if necessary.
Regards, Petr
#DecisionOptimization#Support#SupportMigration