Re: How to deploy single exe application (?)

2021-11-28 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 28 November 2021 at 22:45:29 UTC, Willem wrote: // load sdl string uuid = randomUUID().toString(); string filename = format("SDL2-%s.dll", uuid); string depacked = buildPath(tempDir(), filename); std.file.write(depacked, sdlBytes); DerelictSDL2.load(depacked);

Re: How to deploy single exe application (?)

2021-11-28 Thread kinke via Digitalmars-d-learn
On Monday, 29 November 2021 at 03:59:11 UTC, kinke wrote: `ldc\curl.exp` Typo, should have been `lib\curl.exp`.

Re: How to deploy single exe application (?)

2021-11-28 Thread kinke via Digitalmars-d-learn
On Sunday, 28 November 2021 at 16:08:20 UTC, Willem wrote: Is it possible to distribute an .exe file without the required libcurl DLL? LDC ships with a static curl library - `lib\curl_a.lib`. IIRC, you'll also need to export the curl symbols from the .exe for std.net.curl consumption, by addi

Re: Payload Details with std.net.curl:post

2021-11-28 Thread Kyle Ingraham via Digitalmars-d-learn
On Sunday, 28 November 2021 at 07:27:35 UTC, ikod wrote: On Sunday, 28 November 2021 at 01:06:45 UTC, Kyle Ingraham wrote: On Saturday, 27 November 2021 at 22:18:48 UTC, ikod wrote: On Saturday, 27 November 2021 at 20:31:16 UTC, Kyle Ingraham Hi Kyle, ``` object.Exception@C:\Users\Kyle I

Re: How to deploy single exe application (?)

2021-11-28 Thread Imperatorn via Digitalmars-d-learn
On Sunday, 28 November 2021 at 22:45:29 UTC, Willem wrote: On Sunday, 28 November 2021 at 16:12:42 UTC, Imperatorn wrote: [...] I think so ... below is my test program. It executes OK - but it is not using the imported libcurl dll. Many Thanks. [...] https://docs.microsoft.com/en-us/window

Re: How to deploy single exe application (?)

2021-11-28 Thread Willem via Digitalmars-d-learn
On Sunday, 28 November 2021 at 16:12:42 UTC, Imperatorn wrote: Did you try the import solution? I think so ... below is my test program. It executes OK - but it is not using the imported libcurl dll. Many Thanks. == app.d ``` import std.stdio; import std.uuid; import std

Re: Debugging D code with GDB

2021-11-28 Thread Iain Buclaw via Digitalmars-d-learn
On Saturday, 27 November 2021 at 14:17:11 UTC, Eduard Staniloiu wrote: Hello, I'm trying to use `gdb` to debug D binaries, but I'm having trouble accessing the methods of a struct or class. It seems that `gdb` doesn't see them. Given the following simple example ``` // test.d struct S {

Re: Debugging D code with GDB

2021-11-28 Thread user1234 via Digitalmars-d-learn
On Sunday, 28 November 2021 at 16:44:38 UTC, russhy wrote: On Sunday, 28 November 2021 at 14:53:17 UTC, user1234 wrote: ... there is a plugin to demangle things automatically https://github.com/ANtlord/gdb-ddemangle That's off-topic. The point here is that you can (unfortunately) **only**

Re: Debugging D code with GDB

2021-11-28 Thread russhy via Digitalmars-d-learn
On Sunday, 28 November 2021 at 14:53:17 UTC, user1234 wrote: ... there is a plugin to demangle things automatically https://github.com/ANtlord/gdb-ddemangle

Re: How to deploy single exe application (?)

2021-11-28 Thread Imperatorn via Digitalmars-d-learn
On Sunday, 28 November 2021 at 16:08:20 UTC, Willem wrote: On Monday, 15 November 2021 at 21:53:04 UTC, pilger wrote: [...] 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

Re: How to deploy single exe application (?)

2021-11-28 Thread Willem via Digitalmars-d-learn
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 r

Re: Debugging D code with GDB

2021-11-28 Thread user1234 via Digitalmars-d-learn
On Saturday, 27 November 2021 at 14:17:11 UTC, Eduard Staniloiu wrote: Hello, I'm trying to use `gdb` to debug D binaries, but I'm having trouble accessing the methods of a struct or class. It seems that `gdb` doesn't see them. [...] Looking forward to your answers, Edi [0] - https://sourc