-largeArrayDims option in Visual Studio

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

답변 (1개)

James Tursa
James Tursa 2012년 2월 29일

0 개 추천

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.)

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

질문:

2012년 2월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by