title: Linker can not find static library in same directory
body: <p>I'm porting some Visual Studio 2008/VC9 stuff to Code::Blocks/MinGW and for some reason the linker cannot find a static library from another project in the workspace.</p>
  
  <p>In Visual Studio 2008 I could just set the static lib project as a dependency, and it would build in the right order (i.e. static lib needs to be built before linking the other project), and link the correct library for the configuration.</p>
  
  <p>I couldn't find such an option in Code::Blocks, so I made sure to explicitly build the static lib first (libcommon.a) then under "build options" for the other project add "libcommon.a" in the "linker settings". The .a file is located in the same directory as the project files, however I still get an error from the linker of the other projects saying they cant find it...</p>
  
  <blockquote>
    <p>ld.exe    cannot find -lcommon</p>
  </blockquote>
  
  <p>What am I doing so it cant find the library, even though its right next to the projects file?</p>
  
  <p>Also is there a better way to simulate the Visual Studio dependencies within a single solution/workspace?</p>