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

 Respuesta aceptada

James Tursa
James Tursa el 26 de Jul. de 2012

0 votos

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

1 comentario

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Jul. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by