Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 316
bitcold Avatar asked Aug 31 '25 22:08

bitcold


2 Answers

For Fedora 16 use:

sudo yum install libstdc++-static
like image 150
JonnyRo Avatar answered Sep 04 '25 07:09

JonnyRo


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

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

like image 27
Bugzy Avatar answered Sep 04 '25 07:09

Bugzy