GLIBCXX_3.4.11 not found when executing system('comand')

3 views (last 30 days)
Hi all!
I am trying to execute a command with system() funciton for matlab. The command I want to use is a script that runs a c++ code.
When I open a terminal and use the command g2o -o out.g2o in.g2o it works perfectly and I get the output file that I want, but if I do system('g2o -o out.g2o in.g2o') I get the following error:
~/g2o/bin/g2o: ~/matlabR2010a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ~/g2o/bin/g2o)
~/g2o/bin/g2o: ~/matlabR2010a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ~/g2o/lib/libg2o_cli.so)
~/g2o/bin/g2o: ~/matlabR2010a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.10' not found (required by ~/g2o/lib/libg2o_core.so)
~/g2o/bin/g2o: ~/matlabR2010a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ~/g2o/lib/libg2o_core.so)
~/g2o/bin/g2o: ~/matlabR2010a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ~/g2o/lib/libg2o_core.so)
~/g2o/bin/g2o: ~/matlabR2010a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ~/g2o/lib/libg2o_stuff.so)
And if I do strings libstdc++.so.6 |grep GLIBCXX i get the following:
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_FORCE_NEW
so it is really not there.
Some hint on what to do??
Thanks!!

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!