title: Compiling C++ with g++ -m32 option
body: <p>I am trying to compile as this : </p>
  
  <p><code>-bash-4.1$ g++ -static -m32 Hello.cpp</code></p>
  
  <p>and getting errors like this:</p>
  
  <pre><code>/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.2.1/ld: skipping incompatible /opt/rh/devtoolset-4/root/usr/lib/gcc/x86_64-redhat-linux/5.2.1/libstdc++.a when searching for -lstdc++
  /opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.2.1/ld: cannot find -lstdc++
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>I have tried this as well <strong>but still get the exact same error above</strong>:</p>
  
  <p><code>g++ -static -m32 -L/opt/rh/devtoolset-4/root/usr/lib/gcc/x86_64-redhat-linux/5.2.1/32 Hello.cpp</code></p>
  
  <p>I have tried in both orders - nothing helps.</p>
  
  <p>Why is it still looking at the wrong directory?<br>
  Is using <code>-m32</code> option override <code>-L</code> option?<br>
  I could not find much documentation on <code>-m32</code> option.  </p>
  
  <p>Please help.</p>
  
  <p>Thanks!</p>