-largeArrayDims option in Visual Studio
Afficher commentaires plus anciens
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
Réponses (1)
James Tursa
le 29 Fév 2012
0 votes
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.)
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!