require a 'clr' option when complie the code

Hello,
Today,I complie the .cpp file to a mexFunction,but it need 'clr' option.How to do ?

回答 (1 件)

Image Analyst
Image Analyst 2012 年 11 月 22 日

0 投票

Why do you think that it needs a clr option? "clr" is not even an option for mcc or mex. What is your compilation command?

3 件のコメント

Fan Sudi
Fan Sudi 2012 年 11 月 22 日
my command is "mex Mex_NDIConnect.cpp",its error is
Mex_NDIConnect.cpp(8) : fatal error C1190: Managed object code needs "/ CLR" option.
Fan Sudi
Fan Sudi 2012 年 11 月 22 日
I test the code in Visual Studio C++ 2010,it works well.I know how to set the option in Visual Studio C++ 2010,but fail in matlab after read the website u gave .

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

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler SDK についてさらに検索

タグ

質問済み:

2012 年 11 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by