title: libstdc++ 64bit and 32bit version on the same machine
body: <p>I am trying to cross compile a version of my software for a 64bit platform. Can I have the 32bit and 64bit version of libstdc++ installed on the same machine without too much worries of breaking my linux install. The Os is 32bit ubuntu.</p>
  
  <p>I have not cross compiled before and just wanted to check that if I set my CFLAGS and LDFLAGS
  for the appropriate CPU I should be ok once I have the correct versions of libstdc++ installed.</p>
  
  <p>I checked a 64bit version of ubuntu however this has a symbolic link</p>
  
  <p>lib64 -> lib</p>
  
  <p>this would mess up lots if this is the case on a 32bit machine too anyone know how to sort this?</p>
  
  <p>I am hitting the following error at the moment </p>
  
  <blockquote>
  <pre><code> [exec] /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.so
   [exec] /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a
   when searching for -lstdc++ [exec] /usr/bin/ld: skipping incompatible
  </code></pre>
    
    <p>and so on till </p>
  </blockquote>
  
  <pre><code> [exec] /usr/bin/ld: cannot find -lstdc++
   [exec] collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Which seems to be due to fact I do not have the 64bit version of libstdc++</p>