我正在尝试安装 Piotr 的 Matlab 工具箱(http://vision.ucsd.edu/~pdollar/toolbox/doc/),但 mex 文件的编译脚本抱怨:
>> toolboxCompile
Compiling.......................................
Warning: You are using gcc version "4.6.3-1ubuntu5)". The version
currently supported with MEX is "4.2.3".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release/
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
mex: link of ' "/home/josh/Desktop/Project/code/toolbox/images/private/assignToBins1.mexglx"' failed.
??? Error using ==> mex at 222
Unable to complete successfully.
Error in ==> toolboxCompile at 36
for i=1:length(fs), mex([fs{i} '.c'],opts{:},[fs{i} '.' mexext]);
end
我该如何解决这个问题?