Re: LDC cant find lld-link when crosscompiling

2024-10-09 Thread Johan via Digitalmars-d-learn
On Wednesday, 9 October 2024 at 16:07:29 UTC, AzuraAkumore wrote: Im trying to set up a project that i want to compile for both Windows and Linux. I a on a Linux machine. When compiling for Linux, the platform I'm on, ldc works no problem. its only when I specify to compile for windows that it

LDC cant find lld-link when crosscompiling

2024-10-09 Thread AzuraAkumore via Digitalmars-d-learn
Im trying to set up a project that i want to compile for both Windows and Linux. I a on a Linux machine. When compiling for Linux, the platform I'm on, ldc works no problem. its only when I specify to compile for windows that it cant find lld-link. I installed both LDC and DMD via the deb pac

Re: LDC cant find lld-link when crosscompiling

2024-10-09 Thread Sergey via Digitalmars-d-learn
On Wednesday, 9 October 2024 at 16:07:29 UTC, AzuraAkumore wrote: Where have i messed up or am I even on the right track? It seems fine.. the only thing I can think about is misuse of 32/64 bit libs.. I have this notes: 1) Download Windows multilib 2) Install ldc on linux to LDC_PATH/ldc 3)

Re: Integer types

2024-10-09 Thread Jared McKinnan via Digitalmars-d-learn
On Wednesday, 9 October 2024 at 12:12:22 UTC, Salih Dincer wrote: [...] ```int_fast64_t``` is the fastest 64-bit or larger integer type. The type that is at least 64 bits long and works fastest on the platform is selected. This type can be selected if performance is more important than memory

Re: Why is this not allowed?

2024-10-09 Thread Nick Treleaven via Digitalmars-d-learn
On Wednesday, 9 October 2024 at 01:16:29 UTC, Boaz Ampleman wrote: I'm not a big fan of using declarations as type either: ```d bool doWeWantThat( struct{ int notsure;} p) { return false; } ``` Here `(int notsure) p` would read much better. And we want tuple syntax in the language anyway

Re: Integer types

2024-10-09 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 8 October 2024 at 15:57:24 UTC, Jared McKinnan wrote: Hello there, Just wanted to ask if there's a real difference between e.g. the "long" type and "int_fast64_t" in terms of execution times. Thanks ```int_fast64_t``` is the fastest 64-bit or larger integer type. The type that