title: How to detect unresolved symbol when creating a library?
body: <p>Under Solaris 10, I'm creating a library A.so that calls a function f() which is defined in library B.so. To compile the library A.so, I declare in my code f() as extern.</p>
  
  <p>Unfortunately, I "forgot" to declare in A's makefile that it has to link with B.
  However, "make A" causes no warning, no error, and the library A.so is created.</p>
  
  <p>Of course, when executing A's code, the call of f() crashes because it is undefined.</p>
  
  <p>Is there a way (linker option, code trick...) to make the compilation of library A fail ?
  How can I be sure that all symbols refered to in library A are defined at compile time ?</p>
  
  <p>Thanks for any suggestions.</p>