Single exe vibe.d app

Satoshi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 6 10:07:00 PDT 2017


On Wednesday, 5 April 2017 at 12:42:23 UTC, evilrat wrote:
> On Wednesday, 5 April 2017 at 12:13:38 UTC, Satoshi wrote:
>> Hi,
>> How can I build single exe application with vibe.d (windows)?
>> now it require zlib.dll, libeay32.dll and ssleay32.dll
>>
>> But I need it as single app.
>
> btw, if all you need is to ship it as a single file and don't 
> care if it writes anything, you can probably compile-in those 
> .dll's to your .exe as string with D import statement and write 
> them on disk from static module ctor (static shared this{} at 
> module scope) when it launched.

It's not possible because exe will not run when dll is missing. 
Phobos (or vibe.d ?) doesn't load dll dynamically by dlopen but 
link with .lib of the .dll


More information about the Digitalmars-d-learn mailing list