I am using the C++ API for CPLEX 12.9 in Linux/Centos and I perform the execution and linking of the dependencies as follows:
g++ -std=c++11 main.cpp vrp.cpp