Compling Mex function with SECURE_SCL=0
22 ビュー (過去 30 日間)
古いコメントを表示
When compiling a mex function are their any complications on the Matlab side changing the secure_scl flag to 0.
0 件のコメント
回答 (1 件)
Philip Borghesani
2012 年 11 月 15 日
Mex defaults to secure_scl=0. Verify this with mex -v myfile.cpp. Defining secure_scl=1 will break a great deal of legacy code and may reduce performance.
The relevant build options I see for VS2010 are:
/D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Call C++ from MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!