title: MinGW/Eclipse ld.exe does not find libraries
body: <p>I am using Eclipse CDT to try to compile a project with the Ogre 3D engine.
  But somehow mingw is not able to find the static libraries I link against.</p>
  
  <p>These are the error messages:</p>
  
  <blockquote>
    <p>c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lzziplib_d</p>
    
    <p>c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lzlib_d</p>
    
    <p>c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lfreetype_d</p>
  </blockquote>
  
  <p>...etc. The list goes on like this for each library.</p>
  
  <p>As you can probably see, I already am aware of the (IMO) weird "lib" and ".a" additions the ld.exe seems to make automatically. The libraries are all named correctly. So for example, the "freetype_d" really is "libfreetype_d.a".</p>
  
  <p>I have also added the correct paths to the libraries before, like this:</p>
  
  <blockquote>
    <p>-L"C:\Coding\Ogre\make-debug\sdk\lib\Debug\" -L"C:\Coding\Ogre\make-debug\sdk\lib\Debug\opt\"</p>
  </blockquote>
  
  <p>And each library file is in one of these two folders.</p>
  
  <p>This is my full command line as displayed by Eclipse CDT:</p>
  
  <blockquote>
    <p>g++ -L"C:\Coding\Ogre\make-debug\sdk\lib\Debug\" -L"C:\Coding\Ogre\make-debug\sdk\lib\Debug\opt\" -o "OgreTestMinGW"  ./BaseApplication.o ./LowLevelOgre.o   -lzziplib_d -lzlib_d -lfreetype_d -lFreeImage_d -lOIS_d.dll -lOgreMainStatic_d -lOgrePagingStatic_d -lOgrePropertyStatic_d -lOgreRTShaderSystemStatic_d -lOgreTerrainStatic_d -lRenderSystem_GLStatic_d -lPlugin_ParticleFXStatic_d -lPlugin_PCZSceneManagerStatic_d -lPlugin_OctreeZoneStatic_d -lPlugin_OctreeSceneManagerStatic_d -lPlugin_CgProgramManagerStatic_d -lPlugin_BSPSceneManagerStatic_d</p>
  </blockquote>
  
  <p>What am I missing here?</p>