Compling Mex function with SECURE_SCL=0
조회 수: 21 (최근 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!