Libc functions undefined when linking

Tejas notrealemail at gmail.com
Thu Jan 6 02:08:57 UTC 2022


On Wednesday, 5 January 2022 at 16:14:02 UTC, Ben Jones wrote:
> 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?

I can't say for sure, since I installed dmd from the website 
before installing the other two, but `dub` should be bundled with 
the other two as well

Regardless, know that I didn't install dub seperately, it got 
installed with either the dmd rpm, or the LDC or GDC one


More information about the Digitalmars-d-learn mailing list