Yet more OPTLINK woes

torhu no at spam.invalid
Thu May 13 12:07:45 PDT 2010


On 13.05.2010 10:39, Daniel Keep wrote:
> Attached both regular and decaffeinated^Hgutted versions.

Most likely DMD turns VisitorCtfe.d into an invalid object file. But 
since you don't need to link with objects that contain only ctfe 
functions...

Here's what I get:
------
d:\prog\test\D\matheval>dmd -c AstTest.d Ast.d AstDumpVisitor.d Lexer.d 
Location.d Parser.d Source.d StructuredOutput.d Tokens.d TokenStream.d 
VisitorCtfe.d

d:\prog\test\D\matheval>dmd -ofAstTest.exe *.obj -v
binary    d:\prog\dmd\bin\dmd.exe
version   v1.060
config    d:\prog\dmd\bin\sc.ini
d:\prog\dmd\bin\..\..\dm\bin\link.exe 
"*","AstTest.exe",,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
VisitorCtfe.obj(VisitorCtfe)  Offset 004D8H Record Type 009D
  Error 16: Index Range
--- errorlevel 1

d:\prog\test\D\matheval>del VisitorCtfe.obj

d:\prog\test\D\matheval>dmd -ofAstTest.exe *.obj -v
binary    d:\prog\dmd\bin\dmd.exe
version   v1.060
config    d:\prog\dmd\bin\sc.ini
d:\prog\dmd\bin\..\..\dm\bin\link.exe 
"*","AstTest.exe",,user32+kernel32/noi;

d:\prog\test\D\matheval>AstTest.exe
Can't initialize the TangoTrace LGPL stuff
Usage: AstTest.exe CODE

d:\prog\test\D\matheval>YAY
--------


More information about the Digitalmars-d-learn mailing list