compile d on linux

2009-09-11 Thread remy
hi, can anybody tell me how to compile d code shell script style (eg: build.sh) im migrating to linux from windows environment. i've set up ubuntu 9.04 64bit. and installed LDC compiler since im targeting 64bit executable. unfortunately i never had success installing xfbuild so my only option

Re: Can I use resource file(*.rc,*.res) in D under Win32 API?

2009-09-11 Thread Stewart Gordon
Sam Hu wrote: Greetings to everybody! As subjected.I use vc++ to generate a very simple dialog resource,and then compiled with rcc.exe accompanied with dmc: rcc -32 mydialog.rc it generated mydialog.res file. Did you remember to include this .res file on the command line when linking your

Basic file i/o

2009-09-11 Thread Ali Cehreli
What is the simplest way of using a file? There are two 'File's in Phobos and they conflict: 1) struct File in std.stdio 2) class File in std.stream The one in std.stream.File is definitely what I want to use. What to do? Prefer using full names in D as in std.stream.File? Perhaps std.stdio

Re: Basic file i/o

2009-09-11 Thread Stewart Gordon
Ali Cehreli wrote: What is the simplest way of using a file? There are two 'File's in Phobos and they conflict: 1) struct File in std.stdio 2) class File in std.stream That's crazy. The one in std.stream.File is definitely what I want to use. What to do? Import std.stream, create a File