Eclipse CDT - windows lib file related issue

I get folling linker errors when compiling with gcc:

undefined reference to ` SetStretchBltMode@8 ' undefined reference to ` StretchDIBits@52 ' undefined reference to `SetDIBitsToDevi 

Are these functions defined in Windows libraries?

If so, they are installed with Vista or I need to install them, and if so, where can I download them.

thanks

+4
source share
2 answers

I know that you have solved your problem a long time ago, but for reference, I think you can start g ++ using -mwindows and this will automatically connect gdi32.dll and comdlg32.dll with your binary file.

On this page there is a tutorial for Win32 on MinGW

+1
source

Good - it succeeded:

libgdi32.a comes with mingw.

You need to add -lgdi32 to the g ++ command!

Make sure the path to mingw / lib is also specified in g ++, for example: -Lc: / mingw / lib

+2
source

All Articles