On Monday, 18 November 2013 at 13:28:45 UTC, seany wrote:
Trying to complie a hello world with both imports from tango (tango.io.Stdout) and std (std.string) givns me this :

/home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(341): Error: template definitions aren't allowed inside functions /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(350): Error: unexpected ( in declarator /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(351): Error: found '<=' when expecting ')' /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(350): Error: no identifier for declarator enforce(value) /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(350): Error: semicolon expected following function declaration /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(350): Error: Declaration expected, not 'cast' /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(355): Error: unexpected ( in declarator /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(355): Error: basic type expected, not 0 /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(356): Error: found '0' when expecting ')' /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(355): Error: no identifier for declarator enforce(int) /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(355): Error: semicolon expected following function declaration /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(355): Error: Declaration expected, not '<=' /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(359): Error: Declaration expected, not 'return' /home/apua/Software/dmd/dmd2/src/phobos/std/conv.d(360): Error: unrecognized declaration /home/apua/Software/dmd/dmd2/src/phobos/std/traits.d(151): Error: found ',' when expecting ')' /home/apua/Software/dmd/dmd2/src/phobos/std/traits.d(151): Error: found 'U' when expecting ')' /home/apua/Software/dmd/dmd2/src/phobos/std/traits.d(151): Error: Declaration expected, not ')' /home/apua/Software/dmd/dmd2/src/phobos/std/traits.d(152): Error: found ',' when expecting ')' /home/apua/Software/dmd/dmd2/src/phobos/std/traits.d(152): Error: found 'U' when expecting ')' /home/apua/Software/dmd/dmd2/src/phobos/std/traits.d(152): Error: Declaration expected, not ')' /home/apua/Software/dmd/dmd2/src/phobos/std/traits.d(153): Error: found ',' when expecting ')'


dmd.conf is :
DFLAGS=-I/home/apua/Software/dmd/Tango/ -I/home/apua/Software/dmd/Tango/tango -I/home/apua/Software/dmd/dmd2/src/phobos -I/home/apua/Software/dmd/dmd2/src/druntime/import -L-L/home/apua/Software/dmd/dmd2/linux/lib64 -L-L/home/apua/Softw$

The flags are correct, with corrections from dmd2 to dmd (which contains dmd 2.061) it works.

Where am I wrong?

Looks like a dmd / phobos mismatch. You need to have the same release for both.

Reply via email to