views:

685

answers:

2

Hey!

I'm getting the 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 the windows libs?

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

Thanks

+1  A: 

Ok - worked this out:

libgdi32.a comes with mingw.

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

Make sure that the path to mingw/lib is also provided to g++ eg: -Lc:/mingw/lib

Ash Kim
A: 

Hello there ..m facing similar kind of problem ..n tried with your solution but still not able to get it work ..can u help me out?

rupali