Error with generating mex file from cplexFVA.c (for fastFVA)

101 views
Skip to first unread message

Chaitra Sarathy

unread,
Sep 26, 2017, 5:17:55 PM9/26/17
to COBRA Toolbox

Hello everyone,

I am trying to generate mex file from cplexFVA.c for fastFVA. I have installed CPLEX ILOG v12.7 Community Edition and I am running it on MATLAB R2016a.

The function generateMexFastFVA fails with the following error:

generateMexFastFVA
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2016a\toolbox\stateflow\stateflow
In restoredefaultpath (line 52)
In getCPLEXversion (line 25)
In generateMexFastFVA (line 36)
The CPLEX version has been determined as 1270.
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
Building with 'MinGW64 Compiler (C)'.
Error using mex
gcc: error: -fexceptions: No such file or directory

Error in generateMexFastFVA (line 120)
eval(['mex ' cmd]);



Please help me resolve it.


Thank you,
Chaitra

Laurent Heirendt

unread,
Sep 29, 2017, 9:04:14 AM9/29/17
to COBRA Toolbox
Hi Chaitra,

The version of ILOG CPLEX 12.7 is unfortunately not compatible with your MATLAB version. You can evaluate the compatibility here:


May you downgrade CPLEX to 12.6.3?

Best regards,

Laurent
Reply all
Reply to author
Forward
0 new messages