https://issues.dlang.org/show_bug.cgi?id=15646
Vladimir Panteleev <dlang-bugzi...@thecybershadow.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dlang-bugzilla@thecybershad | |ow.net Hardware|x86 |All --- Comment #1 from Vladimir Panteleev <dlang-bugzi...@thecybershadow.net> --- For -m32mscoff or -m64, you need to link against user32.lib explicitly - either add "user32.lib" to the compiler command line, or add pragma(lib, "user32") to your program. I'm not sure why it's necessary only when targeting the MS toolchain, though. --