Crazy compile time errors with DMD 2.075.1 & 2.076.0

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 3 21:22:14 PDT 2017


On 09/03/2017 09:03 PM, Joel wrote:
 > One of my small programs doesn't compile any more since, said, DMD
 > versions.
 >
 > I've got other programs that do work, but I can't see what's different
 > about them?!
 >
 > I'm using macOS.
 >
 > [1] Here is the program and stuff. It uses DSFML 2.1.1, but I haven't
 > added the dynamic files for it.
 >
 > giver ~master: building configuration "application"...
 > /usr/local/opt/dmd/include/dlang/dmd/std/datetime/systime.d(7652,52):
 > Error:
 > std.datetime.date.splitUnitsFromHNSecs!"days".splitUnitsFromHNSecs at
 > /usr/local/opt/dmd/include/dlang/dmd/std/datetime/date.d(9997,6)
 > conflicts with
 > core.time.splitUnitsFromHNSecs!"days".splitUnitsFromHNSecs at
 > /usr/local/opt/dmd/include/dlang/dmd/core/time.d(4250,6)

Are you installing from the zip distribution? If so, unfortunately, 
changes made to std.datetime are not compatible for that way of 
installing. (The large datetime file has been split into modules, making 
datetime a package.)

First delete the old dmd directories and unzip again.

Ali



More information about the Digitalmars-d-learn mailing list