Matlab Kalman /usr/bin/ld: cannot find -lstdc++

亡梦爱人 提交于 2019-11-30 07:22:32

问题


I'm following the Matlab coder kalman tutorial in Matlab help. When using codegen, there's an error as below:

/usr/bin/ld: cannot find -lstdc++

collect2: ld returned 1 exit status

But there is libstdc++.so.6 in /lib/ and /usr/lib


回答1:


For Fedora 16 use:

sudo yum install libstdc++-static



回答2:


You can soft link the library to the name that is being sought

ln -s /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so




回答3:


If you're compiling a 32-bit application on a 64-bit CentOS 7:

sudo yum install libstdc++-devel.i686



回答4:


i did sudo apt-get install g++-4.7 it work for me for matlab .




回答5:


For CentOS, be sure you have installed gcc-c++ package (it includes libstdc++-devel dependency):

sudo yum install gcc-c++


来源:https://stackoverflow.com/questions/13195110/matlab-kalman-usr-bin-ld-cannot-find-lstdc

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