Compling Mex function with SECURE_SCL=0

15 Ansichten (letzte 30 Tage)
James Lowell
James Lowell am 15 Nov. 2012
When compiling a mex function are their any complications on the Matlab side changing the secure_scl flag to 0.

Antworten (1)

Philip Borghesani
Philip Borghesani am 15 Nov. 2012
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

Kategorien

Mehr zu Call C++ from MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by