GLIBCXX not found when compiling vtk example under mex

南楼画角 提交于 2019-12-04 10:54:24

Matlab uses its own glibc librarires, and it's often a big mess because of that.

To solve that problem you should first try to ensure that matlab use a supported version of gcc. Do you get a warning about that when you compile?

If you are sudoer, you can also "force" matlab to use the standard glibc, by doing something like that (I did it, and it works fine):

cd /usr/local/MATLAB/R2011a/sys/os/glnxa64
sudo mkdir old
sudo mv libstdc++.so.6* old
sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6 

Many people complain about that on the internet, there are different solutions, if those two ones don't work.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!