Re: Dub failing to use the linker correctly.

2021-10-22 Thread Ruby The Roobster via Digitalmars-d-learn
On Friday, 22 October 2021 at 21:57:02 UTC, Ruby The Roobster wrote: On Friday, 22 October 2021 at 21:21:41 UTC, jfondren wrote: On Friday, 22 October 2021 at 19:56:37 UTC, Ruby The Roobster wrote: I have a simple vibe-d project built with dub. Running the command, dub build --force returns th

Re: Why do we have Dmain?

2021-10-22 Thread Elronnd via Digitalmars-d-learn
On Friday, 22 October 2021 at 09:01:53 UTC, Kagamin wrote: Actually C runtime is many megabytes in size. A couple of samples: $ wc -c /usr/lib/libc-2.33.so 2150424 /usr/lib/libc-2.33.so % wc -c /lib/libc.so.7 1981952 /lib/libc.so.7 I would hardly call two megabytes 'many'.

Re: Dub failing to use the linker correctly.

2021-10-22 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/22/21 5:21 PM, jfondren wrote: On Friday, 22 October 2021 at 19:56:37 UTC, Ruby The Roobster wrote: I have a simple vibe-d project built with dub.  Running the command, dub build --force returns the following output: I'd start by running `dub -v build --force` instead, to see the exact

Re: Dub failing to use the linker correctly.

2021-10-22 Thread Ruby The Roobster via Digitalmars-d-learn
On Friday, 22 October 2021 at 21:21:41 UTC, jfondren wrote: On Friday, 22 October 2021 at 19:56:37 UTC, Ruby The Roobster wrote: I have a simple vibe-d project built with dub. Running the command, dub build --force returns the following output: I'd start by running `dub -v build --force` inst

Re: Dub failing to use the linker correctly.

2021-10-22 Thread jfondren via Digitalmars-d-learn
On Friday, 22 October 2021 at 19:56:37 UTC, Ruby The Roobster wrote: I have a simple vibe-d project built with dub. Running the command, dub build --force returns the following output: I'd start by running `dub -v build --force` instead, to see the exact commands that dub is running.

Dub failing to use the linker correctly.

2021-10-22 Thread Ruby The Roobster via Digitalmars-d-learn
I have a simple vibe-d project built with dub. Running the command, dub build --force returns the following output: Performing "debug" build using E:\Programs\D\dmd2\windows\bin\dmd.exe for x86_64. mir-linux-kernel 1.0.1: building configuration "library"... taggedalgebraic 0.11.22: building c

Re: Can we use "ImportC" used yet?

2021-10-22 Thread Dave P. via Digitalmars-d-learn
On Friday, 22 October 2021 at 06:11:35 UTC, data pulverizer wrote: On Thursday, 21 October 2021 at 23:06:18 UTC, jfondren wrote: [...] I've double-checked and the types names are fine in translated C file. [...] I think you ran into this [issue](https://issues.dlang.org/show_bug.cgi?id=2

Re: TimeoutException for connecting to MySQL using a hunt-entity.

2021-10-22 Thread WebFreak001 via Digitalmars-d-learn
On Friday, 22 October 2021 at 11:42:34 UTC, greenbyte wrote: Hi, all! I use the hunt-entity library to work with MySQL. I get the hunt.Exceptions.TimeoutException: "Timeout in 30 secs" when trying to connect. I configured MySQL and ran the code from the instructions https://github.com/huntlab

TimeoutException for connecting to MySQL using a hunt-entity.

2021-10-22 Thread greenbyte via Digitalmars-d-learn
Hi, all! I use the hunt-entity library to work with MySQL. I get the hunt.Exceptions.TimeoutException: "Timeout in 30 secs" when trying to connect. I configured MySQL and ran the code from the instructions https://github.com/huntlabs/hunt-entity MySQL: mysql Ver 8.0.27 for Linux on x86_64 (M

Re: Why do we have Dmain?

2021-10-22 Thread Kagamin via Digitalmars-d-learn
Actually C runtime is many megabytes in size.

Re: Why do we have Dmain?

2021-10-22 Thread Dukc via Digitalmars-d-learn
On Friday, 22 October 2021 at 07:00:25 UTC, Mike Parker wrote: The entry point for your program is a function `_start`. That's implemented in the C runtime, which all D programs depend on. It in turn calls `main`, as it does for C and C++ programs. It is possible, in both C and D, to write you

Re: Why do we have Dmain?

2021-10-22 Thread Kirill via Digitalmars-d-learn
On Friday, 22 October 2021 at 07:00:25 UTC, Mike Parker wrote: [...] Thank you for such a clear explanation Mike and for a quick reply!

Re: Why do we have Dmain?

2021-10-22 Thread Mike Parker via Digitalmars-d-learn
On Friday, 22 October 2021 at 05:54:21 UTC, Kirill wrote: I am not a compiler expert, but I genuinely would like to know why we have Dmain. I've been looking at the generated assembly code recently and noticed the _Dmain function. I didn't notice it before. Then there is main, where Dmain is