-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hello.
When trying to compile the program, viewing many errors "can not implicitly convert expression ...".
I used the compiler dmd2(DMD64 D Compiler v2.060 - rdmd build 20120724), in Debian Wheezy.
This is the console out:
$ rdmd build base swt
(in /home/erunamo/Publico/DWT/dwt)
Building dwt-base
workdir=>/home/erunamo/Publico/DWT/dwt/base/src
cat /home/erunamo/Publico/DWT/dwt/rsp | xargs dmd
java/lang/String.d(117): Error: cannot implicitly convert expression (str.length) of type ulong to int
java/lang/String.d(144): Error: cannot implicitly convert expression (indexOf(str,cast(dchar)searched,cast(CaseSensitive)1)) of type long to int
java/lang/String.d(155): Error: cannot implicitly convert expression (indexOf(str[cast(ulong)fromIndex..__dollar],cast(dchar)searched,cast(CaseSensitive)1)) of type long to int
java/lang/String.d(175): Error: cannot implicitly convert expression (indexOf(str[cast(ulong)fromIndex..__dollar],sub,cast(CaseSensitive)1)) of type long to int
java/lang/String.d(183): Error: function java.lang.String.lastIndexOf (const(char[]) str, char ch) is not callable using argument types (const(char[]),char,ulong)
java/lang/String.d(183): Error: cannot implicitly convert expression (ch) of type char to const(char[])
java/lang/String.d(183): Error: cannot implicitly convert expression (str.length - 1LU) of type ulong to int
java/lang/String.d(189): Error: cannot implicitly convert expression (str.length - 1LU) of type ulong to int
java/lang/String.d(193): Error: cannot implicitly convert expression (lastIndexOf(str[0LU..cast(ulong)(fromIndex + 1)],cast(dchar)ch,cast(CaseSensitive)1)) of type long to int
java/lang/String.d(199): Error: function java.lang.String.lastIndexOf (const(char[]) str, char ch) is not callable using argument types (const(char[]),const(char[]),ulong)
java/lang/String.d(199): Error: cannot implicitly convert expression (str.length - sub.length) of type ulong to int
java/lang/String.d(213): Error: cannot implicitly convert expression (lastIndexOf(str[0LU..to < __dollar ? to : __dollar],sub,cast(CaseSensitive)1)) of type long to int
java/lang/String.d(577): Error: cannot implicitly convert expression (this.str.length) of type ulong to int
java/lang/StringBuffer.d(57): Error: cannot implicitly convert expression (this.buffer.offset) of type ulong to int
java/lang/StringBuffer.d(153): Error: cannot implicitly convert expression (cast(ulong)start + str.length) of type ulong to int
java/lang/System.d(151): Error: cannot implicitly convert expression ((*& x).toHash()) of type ulong to int
java/lang/util.d(79): Error: '__va_argsave_t' is not defined, perhaps you need to import core.vararg; ?
java/lang/util.d(79): Error: function java.lang.util.DwtLogger.trace must import core.vararg to use variadic functions
java/lang/util.d(83): Error: '__va_argsave_t' is not defined, perhaps you need to import core.vararg; ?
java/lang/util.d(83): Error: function java.lang.util.DwtLogger.info must import core.vararg to use variadic functions
java/lang/util.d(87): Error: '__va_argsave_t' is not defined, perhaps you need to import core.vararg; ?
object.Exception@build.d(237): compile error
----------------
/tmp/.rdmd-1000/rdmd-build.d-1A5D519F676749874EA67CBDC0B74281/build(void build.main(immutable(char)[][]).void __lambda2()+0x49) [0x454925]
/tmp/.rdmd-1000/rdmd-build.d-1A5D519F676749874EA67CBDC0B74281/build(_Dmain+0x23ad) [0x4520e5]
/tmp/.rdmd-1000/rdmd-build.d-1A5D519F676749874EA67CBDC0B74281/build(extern (C) int rt.dmain2.main(int, char**).void runMain()+0x1c) [0x46939c]
/tmp/.rdmd-1000/rdmd-build.d-1A5D519F676749874EA67CBDC0B74281/build(extern (C) int rt.dmain2.main(int, char**).void tryExec(scope void delegate())+0x2a) [0x468d16]
/tmp/.rdmd-1000/rdmd-build.d-1A5D519F676749874EA67CBDC0B74281/build(extern (C) int rt.dmain2.main(int, char**).void runAll()+0x3b) [0x4693e3]
/tmp/.rdmd-1000/rdmd-build.d-1A5D519F676749874EA67CBDC0B74281/build(extern (C) int rt.dmain2.main(int, char**).void tryExec(scope void delegate())+0x2a) [0x468d16]
/tmp/.rdmd-1000/rdmd-build.d-1A5D519F676749874EA67CBDC0B74281/build(main+0xd1) [0x468ca1]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f32c2812ead]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels