title: How to make linker prefer implementation from a given location
body: <p>I need a way to make linker prefer one implementation instead of another. My use case is the following: I'm writing unit tests, and I need to mock some objects. The problem is those objects are in 'main' library, which I cannot throw away even in debug, because many of SDK things live there. </p>
  
  <p>So I've implemented those mocks, but now it seems that linker prefers implementation from the 'main' library, at least my code is not called. I'm using ARM RVCT 4 C++ compiler with Symbian toolchain, if this is important.</p>
  
  <p>Any ideas (even workarounds) are greatly appreciated!</p>
  
  <p>EDIT: I need to mock static method call, and probably it is important, as I think static methods are linked in some other ways compared to ordinary methods.</p>