Originally posted by: SystemAdmin
[enderspaul said:]
I run 64 bit Vista, Visual Studio 2008 and CPLEX 11.0 (which are listed as compatible at the ILOG website).
The CPLEX 11.0 distribution does not include a manual how to set up with VS2008. I tried using the manual for VS2005. I made two changes to the manual (after consulting "the web"):
1. Added <CPLEXDIR>\lib\x64_.net2005_8.0\stat_mta\cplex110.lib to Additional Dependencies instead of the x86 version
2. Replaced IL_STD by IL_MTD
I created a test project containing lpex7.c as source code. When I try to build I get the following
1>------ Build started: Project: LP7_test, Configuration: Release Win32 ------
1>Linking...
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXopenCPLEX@4
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXlpopt@8
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXcloseCPLEX@4
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgetx@20
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXreadcopyprob@16
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgetdblquality@16
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXsetintparam@12
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXfreeprob@8
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgetcolname@32
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgetobjval@12
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgetnumrows@8
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgetstat@8
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgeterrorstring@12
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXcreateprob@12
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXsolninfo@24
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgetnumcols@8
1>lpex7.obj : error LNK2001: unresolved external symbol _CPXgetbase@16
1>C:\Code\test\test\LP7_test\Release\LP7_test.exe : fatal error LNK1120: 17 unresolved externals
1>Build log was saved at "file://c:\Code\test\test\LP7_test\LP7_test\Release\BuildLog.htm"
1>LP7_test - 18 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Two questions:
1. Is there a manual for VS2008 which I did just not find yet?
2. If not, what else should be changed to be able to link from a VS2008 project to CPLEX 11.0?
Thanks,
Paul
#CPLEXOptimizers#DecisionOptimization