我想編譯一個共享庫,它將在Ubuntu 11.04上調用MATLAB函數。像命令:錯誤,同時在Matlab 11.11上編譯Matlab mex文件R2011a
mcc - B cpplib:libStepCluster StepCluster.m
獲取以下錯誤。
/usr/lib/i38-linux-gnu/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2010a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl_c.so.2)
/usr/lib/i38-linux-gnu/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2010a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libppl_c.so.2)
/usr/lib/i38-linux-gnu/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2010a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl.so.7)
/usr/lib/i38-linux-gnu/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2010a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libppl.so.7)
/usr/lib/i38-linux-gnu/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2010a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libgmpxx.so.4)
我知道代碼在Ubuntu 10.10中正常工作,並升級到Ubuntu 11.04。然後問題出來了。什麼是問題,以及如何解決它,而沒有太多的痛苦?
請格式化你的答案,這將有助於回答 – Elpezmuerto
@EricChu:看看這些討論,並讓我們知道是否有幫助(我沒有測試過任何解決方案):http:// forums。 opensuse.org/english/get-technical-help-here/applications/443229-after-11-3-upgrade-matlab-compiler-fails-because-gcc.html,https://bbs.archlinux.org/viewtopic。 php?id = 86809 – Amro
欣賞格式化... –