Helping -largeArrayDims flag find c files

I have created a number of mex files using Microsoft Visual C++ 2008 Express and R2010a. These are all saved in C:\Program Files\MATLAB\R2010a\CEtools which has been added to the path. I then receive the following error message:
??? Error using ==> diagmult Function "mxGetIr_700" is obsolete in file ".\compat32.cpp", line 264. (64-bit mex files using sparse matrices must be rebuilt with the "-largeArrayDims" option. See the R2006b release notes for more details.)
diagmult is one of my C files that has been compiled to the following forms: diagmult.mexa64 diagmult.mexmaci64
I then call
mex -largeArrayDims diagmult.c
and get
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: 'diagmult.c' not found.
Is diagmult my problem .c file? If so where is MEX.PL looking for this file?
Thanks
Charles

 Akzeptierte Antwort

James Tursa
James Tursa am 26 Jul. 2012

0 Stimmen

You need to set the current directory to the directory where diagmult.c is located. Then try the mex command again.

1 Kommentar

cdold = cd;
cd('C:\Program Files\MATLAB\R2010a\CEtools');
mex -largeArrayDims diagmult.c
cd(cdold);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

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!

Translated by