Mex compiling on 64 bit linux - /usr/bin/ld: cannot find -lstdc++

前端 未结 5 1781
暖寄归人
暖寄归人 2021-01-27 03:01

Okay I am trying to compile a mex file on 64 bit linux, ubuntu to be precise with Matlab 2013a.

First it gave a error that it could not find GLIBCXX_3.4.15

5条回答
  •  我在风中等你
    2021-01-27 03:41

    Same problem here on Ubuntu 13.04 using MATLAB 2013a. I solved it doing:

    sudo mv /usr/local/MATLAB/R2013a/sys/os/glnxa64/libstdc++.so.6 /usr/local/MATLAB/R2013a/sys/os/glnxa64/libstdc++.so.6.old
    

    To keep a backup just in case.

    And then a symbolic link:

    sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17 /usr/local/MATLAB/R2013a/sys/os/glnxa64/libstdc++.so.6
    

提交回复
热议问题