title: c++ dynamic linking : gcc option for symbol lookup error
body: <p>Is there any compilation option available on gcc to prevent from symbol lookup error at runtime (and avoid to discover it at runtime by generating a compilation error)?</p>
  
  <p>Actually, I have an undefined symbol at execution:</p>
  
  <pre><code>/path/to/lib/lib.so: undefined symbol _ZNsymbol_name_
  </code></pre>
  
  <p>Can gcc prevent the user from this problem at compilation?</p>