-largeArrayDims option in Visual Studio
Ältere Kommentare anzeigen
Hello everyone,
I know the option -largeArrayDims is defined by default in recent versions of MATLAB when compiling a MEX-function with MATLAB's mex command. However, does one have to define it manually when building the MEX-function from Visual Studio? If so, how? The thing is the compilation warnings on both environments are different (specifically, one that says "conversion from 'size_t' to 'int', possible loss of data"). My system is: 64-bit, Windows 7, VS2008, MATLAB2009.
Thanks a lot. Regards, Alfonso
Antworten (1)
James Tursa
am 29 Feb. 2012
0 Stimmen
I think you would have to look into the header files (mex.h, matrix.h, etc) to see what macro(s) are actually expected to be defined when -largeArrayDims is used. I seem to recall that the text "compat" is part of the macro name(s), so search for that. (I am not on a machine with MATLAB installed at the moment or I would look myself.)
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!