compile error on format.d
torhu
no at spam.invalid
Sat Jul 14 13:31:02 PDT 2007
acarion wrote:
> I'm trying DMD on Linux. I downloaded version 1.018 and installed on a Gentoo system by the instructions on prowiki http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler
>
> When I try to compile a 6 lined hello world program, DMD returns
>
> /usr/local/lib/phobos/std/format.d(1463): found ':' when expecting ','
>
> it repeats the exact same message (it appears twice).
>
> What did I do wrong?
Line 1463 of format.d in phobos 1.018 looks like this:
char[5][int] aa = ([3:"hello", 4:"betty"]);
That suggests that your dmd version is older than 1.014, which is the
first version officially supporting the AA literal syntax. Maybe 1.013
and 1.012 allowed it too, it was introduced gradually. Anyway, make
sure you're using matching phobos and dmd versions.
More information about the Digitalmars-d-learn
mailing list