title: Undefined reference to GetStockObject@4
body: <p>I've created a program in Eclipse / MinGW / C (project type: C) which should just present an empty window. It also has the folowing line:</p>
  
  <pre><code>wndclassex.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
  </code></pre>
  
  <p>The call to <code>GetStockObject()</code> produces a compiler error:</p>
  
  <blockquote>
    <p>Z:/mtsts_workspace/MTSTS/Debug/../WinMain.c:29:
    undefined reference to
    `GetStockObject@4'</p>
  </blockquote>
  
  <p>Has anyone an idea what's wrong ?</p>