title: Multiple Version of libstdc++ in Raspberry Pi 3
body: <p>I am having a Raspberry Pi 3.
  I have installed its native tool-chain on my <code>Raspberry Pi 3 : GCC 4.9.2</code> (<code>Raspbian 4.9.2-10</code>) and necessary run-time libraries.
  I have downloaed <code>gcc-linaro-6.3.1-2017.05-x86_64_armv8l-linux-gnueabihf : gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)</code>  and  installed it on my desktop and have even downloaded necessary run-times and copied them on my <code>Raspberry Pi 3</code>.
  I have copied necessary run-time library in <code>/usr/lib/armv8l-linux-gnueabihf/</code> and <code>/lib/armv8l-linux-gnueabihf/ folders</code>.</p>
  
  <p>I am facing the same issue even if I am using Linario GCC 4.9.2 instead of Linario 6.3.1</p>
  
  <p>I get the following error :</p>
  
  <blockquote>
    <p>./gatewaycomminication: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6:
        version CXXABI_1.3.9 not found (required by ./gatewaycomminication)</p>
    
    <p>./gatewaycomminication: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6:
    version GLIBCXX_3.4.21' not found (required by</p>
    
    <p>./gatewaycomminication) ./gatewaycomminication:
    /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.22'
    not found (required by ./gatewaycomminication)</p>
  </blockquote>
  
  <p>If I enable static build the program runs properly.
  I have tried the following possible solutions (but none seem to work) :</p>
  
  <ol>
  <li><code>-Wl,-rpath,-Wl,-rpath,/usr/lib/armv8l-linux-gnueabihf</code></li>
  <li><code>export LD_LIBRARY_PATH=/usr/lib/armv8l-linux-gnueabihf:$LD_LIBRARY_PATH</code></li>
  <li><code>-Wl,-rpath,/usr/lib/armv8l-linux-gnueabihf -L/usr/lib/armv8l-linux-gnueabihf/libstdc++.so.6.0.22</code></li>
  <li><code>LD_PRELOAD=/usr/lib/armv8l-linux-gnueabihf/libstdc++.so.6.0.22 gatewayCommunication</code></li>
  </ol>
  
  <p>Kindly advice how can I get my program compiled in <code>Linario GCC 6.3</code> start working in <code>Raspberry Pi 3</code> using shared library model.</p>