Libc functions undefined when linking

Ben Jones fake at fake.fake
Wed Jan 5 16:14:02 UTC 2022


On Wednesday, 5 January 2022 at 03:38:54 UTC, Tejas wrote:
> On Tuesday, 4 January 2022 at 18:13:56 UTC, Ben Jones wrote:
>
>> The tricky part is that the lab machines that the students 
>> will be using don't have a D compiler installed (they're 
>> Fedora machines, and I didn't see a dmd package in their 
>> repos, or I would have asked the admins to install it).
>>
>
> I'm using Fedora 34
>
> `sudo dnf install ldc` works and gives ldc version 1.25.0(based 
> on dmd 2.095.1)(but you invoke via `ldc2` or `ldmd2`)
> name of rpm:
> Source       : ldc-1.25.1-2.fc34.src.rpm
>
>
> `sudo dnf install gcc-gdc` also works(but it's not the recent 
> one with the D frontend)(you don't even need to write `gdc 
> <input_file>.d`, `gcc <infut_file>.d` also works.)
> name of rpm:
> Source       : gcc-11.2.1-1.fc34.src.rpm

good to know.  What about dub?


More information about the Digitalmars-d-learn mailing list