-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
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) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!