How to deploy single exe application (?)
Willem
willem at m.com
Sun Nov 28 16:08:20 UTC 2021
On Monday, 15 November 2021 at 21:53:04 UTC, pilger wrote:
> On Monday, 15 November 2021 at 21:16:14 UTC, Willem wrote:
>> Any feedback / pointers on where to start would be greatly
>> appreciated.
>
> https://p0nce.github.io/d-idioms/#Embed-a-dynamic-library-in-an-executable
Many Thanks all for the responses.
Reminder of my requirements:
- I am using d2sqlite3 and std.net.curl in a Windows 64 D program
- Want to create a single exe file that I can distribute to other
people without the need to distribute the related DLL's
Progress to date:
sqlite3:
- I found a static compiled version of sqlite3.lib. So I am now
able to link sqlite3 into my exe.
curl:
- No luck with curl yet.
- As per comment from @pilger -- I got the sample DerelictSDL2
program working after adding "derelict-sdl2": "~>3.0.0-beta" to
dub.json and "import derelict.sdl2.sdl;" to app.d
- I see the exe is bigger, so I assume it it added to the
relevant curl DLL -- but the separate Windows DLL file is still
required to execute the exe. So it is not finding the imported
DLL file!
Is it possible to distribute an .exe file without the required
libcurl DLL?
Many Thanks
More information about the Digitalmars-d-learn
mailing list