Syntax error in Cplex.m

2 ビュー (過去 30 日間)
Nicolas
Nicolas 2014 年 7 月 30 日
コメント済み: Paul 2014 年 10 月 22 日
Hi,
I'm using Cplex optimizer in a MATLAB project through the Cplex Class API for MATLAB. The project works fine when run in the MATLAB dev environment.
However, I am not able to complile this project with MATLAB's compiler.
Here is the message I get when I add my project's main file in the MATLAB compiler interface:
"The following error was encountered when analysing user added files. MATLAB code 'C:\Program Files\IBM\ILOG\CPLEX_Studio126\cplex\matlab\x64_win64\@Cplex\Cplex.m' contains the following syntax error(s): L 248 (C7-14): FUNCTION keyword use is invalid here. This might cause later messages about END. L1040 (C 4-6): Parse error at END: usage might be invalid MATLAB syntax."
And then nothing. No files are added and nothing gets compiled.
Any ideas? Thanks for your help.
MATLAB version: R2014a Cplex Studio version: 12.6
  2 件のコメント
Paul
Paul 2014 年 10 月 22 日
Hi Nicolas,
A colleague at work found the solution to this problem. Apparently some capabilities have been removed from the Matlab compiler, including support for compiling code with a classdef. Our code that calls Cplex will compile with the mcc from R2012b and run wihtout any runtime errors. It will compile with R2012a, but not run. It gets runtime error: undefined symbol:_ZN2fl4i18n14MessageCatalog18MessageCatalogInitERKSbItSt11char_traitsItESaItEE
I hope that helps,
Paul
Paul
Paul 2014 年 10 月 22 日
Hi Nicolas,
I forgot to mention that I have not tried this with the mcc from Matlab version R2013a or R2013b, as I don't have that available.
Cheers, Paul

サインインしてコメントする。

回答 (1 件)

Paul
Paul 2014 年 10 月 16 日
Hi Nicolas,
I have exactly the same problem. Sorry I don't have an answer, but will post if I find one.

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by