[Issue 15646] Unresolved symbols when using m32mscoff with Windows subsystem
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jun 26 09:17:12 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=15646
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dlang-bugzilla at thecybershad
| |ow.net
Hardware|x86 |All
--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at 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.
--
More information about the Digitalmars-d-bugs
mailing list