Phobos and Tango deep dependancies

Vladimir Panteleev thecybershadow at gmail.com
Tue Oct 2 15:18:25 PDT 2007


On Tue, 02 Oct 2007 22:26:20 +0300, Gilles G. <schaouette at free.fr> wrote:

> But why does the C runtime library for DMD requires user32? A simple hello world program compiled using visual 2005 express does not depend on user32!
> Is there any way to solve this?

user32.dll is pulled in because of one import - MessageBoxA. In case that an unhandled exception or other internal error happens, and the application doesn't have a console (or, more precisely, a standard output stream), a message box is shown. This could be remedied by delay-importing it.

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list