my matlab mex function can't compile any file

This is the make.m file of LibSVM,
try
Type = ver;
% This part is
for OCTAVE
if(strcmp(Type(1).Name, 'Octave') == 1)
mex libsvmread.c
mex libsvmwrite.c
mex svmtrain.c ../svm.cpp svm_model_matlab.c
mex svmpredict.c ../svm.cpp svm_model_matlab.c
% This part is for MATLAB
% Add -largeArrayDims on 64-bit machines of MATLAB
else
mex CFLAGS="\$CFLAGS -std=c99" -largeArrayDims libsvmread.c
mex CFLAGS="\$CFLAGS -std=c99" -largeArrayDims libsvmwrite.c
mex CFLAGS="\$CFLAGS -std=c99" -largeArrayDims svmtrain.c ../svm.cpp
svm_model_matlab.c
mex CFLAGS="\$CFLAGS -std=c99" -largeArrayDims svmpredict.c ../svm.cpp
svm_model_matlab.c
end
catch
fprintf('If make.m fails, please check README about detailed instructions.\n');
end
After run this file:
"D:\PROGRA~1\MATLAB\R2012B\BIN\MEX.PL: Error: Compile of 'libsvmread.c' failed"
I already tried many other files written by C or C++, always the same problem.
And i already did mex -setup part,uninstall and install matlab and VS2010 express.

Réponses (0)

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange

Question posée :

le 23 Jan 2013

Community Treasure Hunt

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

Start Hunting!

Translated by