Originally posted by: Jaeyoung
I'm new to CPLEX. My environment is Windows XP, MSVC++ 2008 with MFC application with "using namespace std;"
I recently added CPLEX in my project. I've added Libs, additional including paths in the project setting.
1) Initial try (just followed examples in CPLEX folder)
Added the followings in my source file "myFile.cpp"
#include <ilcplex/ilocplex.h>
ILOSTLBEGIN
Then, I've got an error "c:\ilog\concert29\include\ilconcert\ilosys.h(382) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory"
2) 2nd try
"#define ILO_STL" <= I added
#include <ilcplex/ilocplex.h>
ILOSTLBEGIN
Then I've got 47 link errors saying "conflict with already existing libraries (MSVCRT)"
3) 3rd try
Changed the Runtime Library setting from "Multi-threaded Debug" to "Multi-threaded DLL Debug"
and added "#define _AFXDLL" in stdafx.h
Then no errors, but still getting "warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library"
Trying (3) is right? Could anyone help me?
#CPLEXOptimizers#DecisionOptimization