mex error, no file name given

1 回表示 (過去 30 日間)
Pengfei
Pengfei 2015 年 9 月 15 日
回答済み: Walter Roberson 2015 年 9 月 15 日
Hi,
I'm using mex. Although the help doc is pretty clear, using
mex fname.xx
I cannot repeat it and am getting error.
e.g.
mex 3PK.SIF or "3PK.SIF"
MEX: NO FILE NAME GIVEN.
Usage:
MEX .....
Use the -help option for more information....
What's the problem here? I'm using R2013a.
Thank you!

採用された回答

Walter Roberson
Walter Roberson 2015 年 9 月 15 日
mex looks at the file extension to figure out how to compile the file. The .SIF file extension is unknown to mex, so it complains that it cannot find any files it does recognize such as .c .C .cpp .f files.
I would have thought that you would want to mex code to read SIF files, not a SIF file itself.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by