title: /usr/../libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ...)
body: <p>I have been stuck on this problem for several weeks and been looking around on Internet for solution but so far not so good...</p>
  
  <p>So I have a program written by someone else and I try to compile it in Matlab to make it work. My computer is Red-hat enterprise Linux workstation (64 bits) with gcc 4.4.3 and Matlab 2011b installed. The gcc is compatible with my Matlab (<a href="http://www.mathworks.com/support/compilers/R2011b/glnxa64.html" rel="nofollow">http://www.mathworks.com/support/compilers/R2011b/glnxa64.html</a>). </p>
  
  <p>The compilation works fine (I mean, no error message occurs in Matlab command window). But after compilation, every time when I use a specific function from the compilation (it's call "mexLasso"), it will show up errors like this:</p>
  
  <p>***Invalid MEX-file '/usr/local/matlab_R2011b/toolbox/spams-matlab/build/mexLasso.mexa64':
  /usr/local/matlab_R2011b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version
  `GLIBCXX_3.4.11' not found (required by
  /usr/local/matlab_R2011b/toolbox/spams-matlab/build/mexLasso.mexa64)</p>
  
  <p>Error in test (line 24)
  alpha=mexLasso(X,D,param);<em>*</em></p>
  
  <p>So I type "strings /usr/lib/libstdc++.so.6 | grep GLIBC" in the terminal, and I found the "GLIBCXX_3.4.11" is actually in it. </p>
  
  <p>I've been using Linux and gcc stuff for only several months...so there are still a lot of things I don't understand. It will be of great help if you can explain it in detail. Thanks!!</p>
  
  <p>%% More detail: 
  I got these programs on machine learning from <a href="http://spams-devel.gforge.inria.fr/downloads.html" rel="nofollow">http://spams-devel.gforge.inria.fr/downloads.html</a>. The wierd thing is, after compilation, other functions in that package works fine (such as "mexTrainDL").</p>