Originally posted by: Mr.EU
My cplex installed in directory:
CPLEXDIR = /opt/ibm/ILOG/CPLEX_Studio1251/cplex/include
CONCERTDIR = /opt/ibm/ILOG/CPLEX_Studio1251/concert/include
I have main.cpp file in:
/home/user1/Desktop/test/main.cpp
I want to compile and run from linux terminal, also need a.out(or something similar)
The Makefile is in location:
/home/user1/Desktop/test/Makefile
I followed Question. but unable to compile. Is there any other file required to compile other than Makefile?
I also tried after previous failure as described here: Link
This time I got error message:
In file included from main.cpp:9:0:
/opt/ibm/ILOG/CPLEX_Studio1251/cplex/include/ilcplex/ilocplex.h:27:32: fatal error: ilconcert/ilomodel.h: No such file or directory
#include <ilconcert/ilomodel.h>
^
compilation terminated.
In my main file, line 9 is:
#include <ilcplex/ilocplex.h>
I want a single Makefile which will compile the main.cpp and create a.out(executable by ./a.out), which can easily run in terminal.
Please help. Thank you.
#CPLEXOptimizers#DecisionOptimization