title: GCC -m32 flag: /usr/bin/ld: skipping incompatible
body: <p>On 64 bit host I am trying to build shared libraries with <code>-m32</code> option. Is it possible for these libraries to be linked with regular 64 bit libraries?</p>
  
  <p>I am doing something like this:</p>
  
  <pre><code>g++ -m32 -shared source.cpp -l 64_bit_library.so -o 32_bit_library.so
  </code></pre>
  
  <p>and getting error messages like this:</p>
  
  <pre><code>/usr/bin/ld: skipping incompatible 64_bit_library.so
  </code></pre>
  
  <p>So my question is: how <code>64_bit_library.so</code> and <code>32_bit_library.so</code> should be compiled on 64 bit host, to make it possible for <code>32_bit_library.so</code> to be linked against <code>64_bit_library.so</code>?</p>