Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

trunk compiling error, windows xp, dmd 1.043

Moderators: kris

Posted: 05/05/09 04:47:32 Modified: 05/05/09 04:49:10

dmd 1.041 also reported the same error.Wrong version, compile option or should I fix the code ?

E:\dmd1.0\import\lib\..\tango\net\cluster\tina\Cluster.d(1055): Error: function tango.net.device.Socket.
Socket.setTimeout is deprecated

E:\dmd1.0\import\lib\..\tango\util\log\Log.d(1132): Error: function tango.util.log.Log.Hierarchy.inject (char[],Logger delegate(char[] name)) does not match parameter types (char[],int delegate(char[] name))

E:\dmd1.0\import\lib\..\tango\util\log\Log.d(1132): Error: cannot implicitly convert expression (dgliteral8) of type int delegate(char[] name) to Logger delegate(char[] name)

E:\dmd1.0\import\lib\..\tango\util\log\Log.d(1631): Error: function tango.util.log.Log.Appender.Layout.format (LogEvent?,uint delegate(void[])) does not match parameter types (LogEvent?,int delegate(void[]))

E:\dmd1.0\import\lib\..\tango\util\log\Log.d(1631): Error: cannot implicitly convert expression (dgliteral10) of type int delegate(void[]) to uint delegate(void[])

E:\dmd1.0\import\lib\..\tango\util\log\Log.d(1701): Error: function tango.util.log.Log.Appender.Layout.format (LogEvent?,uint delegate(void[])) does not match parameter types (LogEvent?,int delegate(void[]))

E:\dmd1.0\import\lib\..\tango\util\log\Log.d(1701): Error: cannot implicitly convert expression (dgliteral11) of type int delegate(void[]) to uint delegate(void[])

Author Message

Posted: 05/05/09 10:38:45

I think the last version that can be built under Win32 is tango-r4594

See #1623 and #1635

Posted: 05/05/09 16:22:55

the compiler has a -d flag. You could use that :)

Posted: 05/06/09 11:53:36 -- Modified: 05/06/09 15:53:21 by
HeiHon

Yeah, I could use that d flag (and I did so before).

But when building tango with dmd+windows I do as the install instruction http://www.dsource.org/projects/tango/wiki/WindowsInstall says: I call build-dmd.bat + build-win32.bat + build-tango.bat

build-tango.bat calls build-tango-app.exe and how do I tell that exe to use the d flag?

And btw: I still get an error when I try to append to a file with tango-r4631 (see #1635)

Edit:

In the meantime I installed linux (Kubuntu 9.04) in a VirtualBox? 2.2.

tango-r4631 built OK (after modifying tina/Cluster.d line 1055 - dmd 1.043 - build-dmd.sh + build-tango.sh dmd).

And you can even append to existing files :)

Posted: 05/06/09 17:24:57

:)

Posted: 05/10/09 16:31:24

tango-r4641 built OK on windos vista.

And now I can even open an existing file with WriteCreate? or WriteAppending? on windows (see modified #1635).

:)