我試圖安裝的Piotr的Matlab的工具箱(http://vision.ucsd.edu/~pdollar/toolbox/doc/)Matlab的MEX文件(彼得的Matlab的工具箱),但編譯腳本的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
我怎麼去解決這個問題?
是否安裝G ++?似乎你沒有一個C++庫。 – 2013-02-17 07:47:04