フィルターのクリア

can anyone help me with mex file ?

1 回表示 (過去 30 日間)
Sujan
Sujan 2012 年 8 月 23 日
I am new to mex file. I am trying to run demo program. The compiler I use is Lcc-win32. I try to run it on the command prompt but I get error
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: 'demo.cpp' not found.
??? Error using ==> mex at 222 Unable to complete successfully.
I am currently saving this in my current working directory.
Can any one tell me what is wrong ?
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 8 月 23 日
Please remember that lcc is a C compiler only, but .cpp files are C++ . You may need to configure a C++ compiler.

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

採用された回答

Jan
Jan 2012 年 8 月 23 日
To repeat Walter's comment as an answer: LCC can handle C-files only. The installation of a (free) C++ compiler is explained in the documentation.
Btw. It is very sad that Matlab still includes the extremly ols LCC2.4, while there are modern versions available in the net. Manual adjustments of the mexopts.bat file allow to use them, but unfortunately this is not trivial due to the hyper-complicated parsing of the "bat" file in PERL. There is even a LCC-64bit, but I'm not satisfied with its stability yet.

その他の回答 (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