-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hello! Sorry for my English. And I'm noob (double kill :) ).
I downloaded your lib (thanks a lot!), install Ruby. With help of Rake I built it:
C:\D\dmd2\src\dwt>rake DEBUG=1 base swt
C:/D/dmd2/src/dwt/rakefile:19: Use RbConfig instead of obsolete and deprecated Config.
Debug Building dwt-base
workdir=>C:\D\dmd2\src\dwt\base\src
Debug Building org.eclipse.swt.win32.win32.x86
workdir=>C:\D\dmd2\src\dwt\org.eclipse.swt.win32.win32.x86\src
Well! Since this moment I have di-files and libs.
I need two libs for Hello World compilation: dwt-base.lib and org.eclipse.swt.win32.win32.x86.lib. That files I copy from dwt/lib to dmd2/windows/lib.
Folders java (with port of java std lib) and org (with eclipse swt) I copy to folder of my project. That means, that my main.d, java and org are locating in same folder.
Whhooh! Let's build! :)
C:\MyD\ConsoleApp3\ConsoleApp3>dmd main.d dwt-base.lib org.eclipse.swt.win32.win32.x86.lib -debug
main.exe
Yeeeeeeeeeh!!! :) That's work!!! :) And I'm realy glad, but... For debugging in D-IDE I should to generate debug info
C:\MyD\ConsoleApp3\ConsoleApp3>dmd main.d dwt-base.lib org.eclipse.swt.win32.win32.x86.lib -debug -gc
--- errorlevel 1
Same with "-g" :( I just can't debug :(
That is verbose compilation log:
http://www.everfall.com/paste/id.php?7a6wqq94pysh
And this is "Hello, world'' code:
import std.stdio, std.cstream;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
void main(string[] args)
{
Display display = new Display ();
Shell shell = new Shell(display);
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}Should I to do?