Compiling libsvm failed in Matlab 2010a on macos lion, float.h not found

1 次查看(过去 30 天)
Hi,
I got this error when I try to compile libsvm on Matlab 2010a on MACOS Lion. It reports:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory
But when I go into the directory, float.h is actually there. The following is the reported error.
Any idea on the solution? Any advice will be appreciated. Thanks!
Cheers
Yu
>> make
In file included from /Applications/MATLAB_R2011a.app/extern/include/tmwtypes.h:61,
from /Applications/MATLAB_R2011a.app/extern/include/matrix.h:293,
from /Applications/MATLAB_R2011a.app/extern/include/mex.h:58,
from libsvm_classifier_spider.cpp:10:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory
libsvm_classifier_spider.cpp:11:20: error: mexarg.h: No such file or directory
libsvm_classifier_spider.cpp: In function 'void mexFunction(int, mxArray**, int, const mxArray**)':
libsvm_classifier_spider.cpp:96: error: 'mexarg' was not declared in this scope
libsvm_classifier_spider.cpp:96: error: expected `;' before 'arg'
libsvm_classifier_spider.cpp:98: error: 'arg' was not declared in this scope
libsvm_classifier_spider.cpp:124: error: 'arg' was not declared in this scope
libsvm_classifier_spider.cpp:154: error: 'arg' was not declared in this scope
mex: compile of ' "libsvm_classifier_spider.cpp"' failed.
??? Error using ==> mex at 208
Unable to complete successfully.
Error in ==> make at 1
mex libsvm_classifier_spider.cpp svm.cpp -I..\compiletools
..\compiletools\mexarg.cpp

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by