CreateCompatibleDC

Started by
2 comments, last by Aardvajk 17 years, 6 months ago
I'm trying to compile a source code to use mappy in my project, but it keeps saying there's an undefined reference to CreateCompatibleDC and CreateDIBitmap Is there some libary or header that I'm forgetting to compile?
Sylvarant @www.gamedesign.be
Advertisement
I think these are in gdi32.lib. You need to make sure gdi32.lib is being linked to your project (not all Win compilers do this by default).
Thanx, it seems Dev-c++ doesn't do that automaticly
Sylvarant @www.gamedesign.be
Yeah, neither does Digital Mars. Drove me mad for a few hours a couple of months ago [smile].

This topic is closed to new replies.

Advertisement