www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - GetStockObject -- symbol undefined error

reply "correspondent" <ethicalbean hotmail.com> writes:
This win API call generates fatal error. Is there a fix? 
Sep 23 2012
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 9/23/12, correspondent <ethicalbean hotmail.com> wrote:
 This win API call generates fatal error. Is there a fix?
The gdi32.lib import library DMD distributes is outdated. You can use this one: https://github.com/AndrejMitrovic/DWinProgramming/raw/master/gdi32.lib Pass it to DMD's command line when compiling. There's a bug open on this: http://d.puremagic.com/issues/show_bug.cgi?id=6625 Unfortunately the import libs are not on github so I have no idea how Walter packs these, otherwise I'd do a pull request ages ago.
Sep 23 2012