我试图在 R4.0.3 上安装 cplexAPI 1.4.0。我已经按照描述的所有步骤安装了 cplex 12.10
但是我仍然收到以下错误:
"C:/Source/rtools40/mingw32/bin/"gcc -I"C:/Source/R/R-40~1.3/include" -DNDEBUG -g -D_R_=1 -DUSE_R=1 -I"C:\ Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c cplexAPI.c -o cplexAPI.o C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129 \cplex\include/ilcplex/cpxconst.h:243:62: error: expected ')' before 'deprecated' #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cplex.h:1194:1:注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~ ~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst.h:243:41: 错误:预期标识符或 '('before ')' token #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cplex.h:1194: 1:注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst .h:243:62: error: expected ')' before 'deprecated' #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\ cplex\include/ilcplex/cplex.h:1200:1: 注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM \ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst.h:243:41:错误:预期标识符或“(”before ')' token #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cplex.h:1200: 1:注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst .h:243:62: error: expected ')' before 'deprecated' #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\ cplex\include/ilcplex/cplex.h:1231:1: 注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM \ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst.h:243:41:错误:预期标识符或“(”before ')' token #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cplex.h:1231: 1:注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst .h:243:62: error: expected ')' before 'deprecated' #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\ cplex\include/ilcplex/cplex.h:1237:1: 注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM \ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst.h:243:41:错误:预期标识符或“(”before ')' token #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cplex.h:1237: 1:注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst .h:243:62: error: expected ')' before 'deprecated' #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\ cplex\include/ilcplex/cplex.h:1242:1: 注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM \ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst.h:243:41:错误:预期标识符或“(”before ')' token #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cplex.h:1242: 1:注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst .h:243:62: error: expected ')' before 'deprecated' #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\ cplex\include/ilcplex/cplex.h:1597:1: 注意:在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ C:\Program Files\IBM \ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cpxconst.h:243:41:错误:预期标识符或“(”before ')' token #define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated) ^~~~~~~~~~ C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\include/ilcplex/cplex.h:1597: 1: 注意: 在宏 'CPXDEPRECATEDAPI' CPXDEPRECATEDAPI(12090000) 的扩展中 ^~~~~~~~~~~~~~~~ make: *** [C:/Source/R/R-40~1.3/ etc/i386/Makeconf:222: cplexAPI.o] 错误 1 错误: 包 'cplexAPI' 的编译失败cplexAPI'cplexAPI'
- 删除 install.packages 中的“C:/Source/R/R-4.0.3/library/cplexAPI”警告:安装包“cplexAPI”的退出状态非零
有没有人遇到过这个?