mcc error when creating C++ libraries (cvx)

2 ビュー (過去 30 日間)
Elvis Chen
Elvis Chen 2017 年 8 月 16 日
コメント済み: Harsheel 2017 年 8 月 22 日
greetings,
I am trying to call matlab function from C++, particularly using CVX (<http://cvxr.com/cvx/)>. My platform is:
Windows 10, 64bits matlab 2016b cvx 64 bits (v2.1)
cvx works inside the matlab environment.
I ran the following command
mcc -W lib:cvxLib -T link:lib <plus whole bunch of .m files>
but eventually came to this error message:
Error in mtree/kind (line 9)
a = o.KK{ o.T( o.IX, 1 ) };
Error in matlab.depfun.internal.getSig (line 103)
switch myRoot.kind
Unable to determine function name or input/output argument count for function
in MATLAB file "functions.m".
Please use MLINT to determine whether this file contains errors.
Error using mcc
Error executing mcc, return status = 1 (0x1).
How do go about resolving this issue?
  1 件のコメント
Harsheel
Harsheel 2017 年 8 月 22 日
Can you rename one of your file "functions.m" to some other name such as "functionList.m" ? MATLAB has built-in function called "functions.m".

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

回答 (0 件)

カテゴリ

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