D seems interesting, but...

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Oct 15 12:40:25 PDT 2012


On Mon, Oct 15, 2012 at 08:46:21PM +0200, Gerry Weaver wrote:
[...]
> It just occurred to me that I've seen this type of file issue
> before. If memory serves, it was related to the attempt to load a
> 64bit lib on a 32bit system. It was an odd problem, because it
> didn't fail in the way one would expect. The process in that case
> was reading garbage from memory. I don't get how it could be reading
> nothing though. Anyway, I'm going to look into this possibility. I
> found some notes that I made during that time and it does have a
> similar feel to it. I'll let y'all know what I find.
[...]

Now, that does sound like it could be the source of the problem. If dmd
was reading garbage from the file, if there just happens to be, say, a
binary 0 at the beginning (or whatever it is that causes dmd to think it
has reached EOF), then it would just stop and produce an empty object
file. So the linker will fail to find the symbols that dmd emits when it
encounters main().


T

-- 
Не дорог подарок, дорога любовь.


More information about the Digitalmars-d mailing list