Originally posted by: SystemAdmin
[jfk said:]
Hello,
I haven't done C++ for a long time but it seems that you didn't set the include path. It is OK to tell CPLEX which .h should be used but where those file are should be supplied in the compiler environment. in cplex there is a c_cpp.html which gives quite detailed info how to do all this. It says:
"Select C/C++ in the Configuration Properties tree.
* Select General:
o In the Additional Include Directories field, add the directories:
+ <CPLEXDIR>\include.
+ <CONCERTDIR>\include."
then for the linking you have to add the libraries. Again the above mentioned file says:
"Select Linker in the Configuration Properties tree.
* Select Input and then select Additional Dependencies. Add the files:
o wsock32.lib
o <CPLEXDIR>\lib\x86_.net2005_8.0\stat_mta\cplex112.lib
o <CPLEXDIR>\lib\x86_.net2005_8.0\stat_mta\ilocplex.lib
o <CONCERTDIR>\lib\x86_.net2005_8.0\stat_mta\concert.lib
The latter two are only necessary if you are using ILOG Concert Technology."
may I suggest you that next time you post C++ questions of CPLEX not under ILOG OPL (CPLEX) but ILOG CPLEX? OPL is a language on it own. Folks on that forum may jump on such questions right away... :-)
sorry, I don't understand you 2nd posting...
I hope it helps in general
cheers
#CPLEXOptimizers#DecisionOptimization