samples of D2 can't be compiled

2009-05-10 Thread zsxxsz
Hi, inorder to learn D, I try to compile some samples of D2.029, but failed. I found the reason was that some functions had been changed. For example, in listener.d, the std.conv.toUshort(args[1]) is not appeared in D2 any more, std.conv.to!(ushort)(string) should be used instead. I mean, if are

build dmd phobos

2009-05-22 Thread zsxxsz
I have builded dmd.2.029's phobos on Redhat Advanced Server3.0. But when I build phobos on Redhat9.0, I got the error as make: *** No rule to make target `posix/release', needed by `default'. Stop.. I think this maybe the linux.mak can't used on Redhat9.0. Can anybody resolve it? Thanks zsxxsz

build dmd.2.029 on Redhat Linux9.0 error

2009-05-22 Thread zsxxsz
When I build dmd.2.029 compiler on Redhat Linux9.0, I got the warning as below: func.c: In member function `virtual void StaticDtorDeclaration::semantic(Scope*)': func.c:2777: warning: passing negative value `-1' for argument 1 of ` IntegerExp::IntegerExp(long long unsigned int)'

build my project error with dmd.2.052

2011-02-22 Thread zsxxsz
dmd -oftest adl/*.d main/*.d import/acl/*.d ./lib/lib_acl.a /usr/bin/ld: unrecognized option '--no-warn-search-mismatch' /usr/bin/ld: use the --help option for usage information my ld: GNU ld version 2.17.50.0.6-6.el5 20061020