my matlab mex function can't compile any file
Mostrar comentarios más antiguos
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.
1 comentario
Walter Roberson
el 23 de En. de 2013
Please show us what you get when you go through
mex -setup
Respuestas (0)
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!