-largeArrayDims option in Visual Studio
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
James Tursa
on 29 Feb 2012
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.)
0 Comments
See Also
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!