Yep, those errors are always a sign that a proper main function is missing. I have no idea why you would get it otherwise, though.
So.. is it possible to save the source file in such a way that dmd cannot "see" main?
i.e. not ASCII, UTF-8/16/32 or with a weird BOM, or no BOM or.. R -- Using Opera's revolutionary email client: http://www.opera.com/mail/