title: undefined reference to _imp__GetDIBits@28 with GetDIBits function
body: <p>I'm trying to use the <strong>GetDIBits</strong> function with C++ (with QtCreator) on Windows. The code compiles but can not link with the error </p>
  
  <blockquote>
    <p>undefined  reference to _imp__GetDIBits@28</p>
  </blockquote>
  
  <p>I tried to link add </p>
  
  <blockquote>
    <p>LIBS = C:/MinGW/lib/libws2_32.a</p>
  </blockquote>
  
  <p>to my .pro file but nothing changed.
  is it the correct library or another one ? Thank you</p>