samedi 16 janvier 2021

Linking error in program using CPLEX C++ API on Linux

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 vrp.h -I/opt/ibm/ILOG/CPLEX_Studio129/cplex/include -I/opt/ibm/ILOG/CPLEX_Studio129/concert/include -L/opt/ibm/ILOG/CPLEX_Studio129/cplex/lib/x86-64_linux/static_pic -L/opt/ibm/ILOG/CPLEX_Studio129/concert/lib/x86-64_linux/static_pic -o hprogram

But I cannot generate the compiled one I get several errors. Will I be linking the dependencies well?

regards.

Aucun commentaire:

Enregistrer un commentaire