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.
댓글 수: 1
Walter Roberson
2013년 1월 23일
Please show us what you get when you go through
mex -setup
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!