matlab - Error using eval, Undefined function or variable 'largeArrayDims'. -
i'm want install enceval toolkit on matlab2012a:
enceval toolkit file install on matlab
i installed support compiler visual studio 10 , sdk 7.1. had written code in file.m install :
archstr = computer('arch'); if(strcmp(archstr,'win64')) lapacklib = fullfile(matlabroot, ... 'extern', 'lib', 'win64', 'microsoft', 'libmwlapack.lib'); blaslib = fullfile(matlabroot, ... 'extern', 'lib', 'win64', 'microsoft', 'libmwblas.lib'); command = 'mex (''llcencodehelper.cpp'', lapacklib, blaslib, largearraydims)'; elseif(strcmp(archstr,'win32')) lapacklib = fullfile(matlabroot, ... 'extern', 'lib', 'win32', 'microsoft', 'libmwlapack.lib'); blaslib = fullfile(matlabroot, ... 'extern', 'lib', 'win32', 'microsoft', 'libmwblas.lib'); command = 'mex(''llcencodehelper.cpp'', lapacklib, blaslib)'; elseif strcmp(archstr,'glnx86') command = 'mex -o llcencodehelper.cpp -lmwlapack -lmwblas'; elseif strcmp(archstr,'glnxa64') command = 'mex -o llcencodehelper.cpp -lmwlapack -lmwblas -largearraydims'; else error('system architecture not identified'); end mexcmds=cell(0,1); mexcmds{end+1}=command; i=1:length(mexcmds) fprintf('executing %s\n',mexcmds{i}); eval(mexcmds{i}); end
when run code , exception :
*executing mex ('llcencodehelper.cpp', lapacklib, blaslib, largearraydims) error using eval undefined function or variable 'largearraydims'. error in featpipem_setup (line 32) eval(mexcmds{i});*
i don't know why problem of matlab version or there missing ?
try passing string '-largearraydims'
instead of variable largearraydims
not declared anywhere prior call mex, is, try running following:
lapacklib = fullfile(matlabroot, ... 'extern', 'lib', 'win64', 'microsoft', 'libmwlapack.lib'); blaslib = fullfile(matlabroot, ... 'extern', 'lib', 'win64', 'microsoft', 'libmwblas.lib'); command = 'mex (''llcencodehelper.cpp'', lapacklib, blaslib, ''-largearraydims'')'; eval(command)
Comments
Post a Comment