Unexpected OPTLINK termination

Faux Amis faux at amis.com
Tue Oct 9 09:30:01 PDT 2012


I get an unexpected OPTLINK termination when I run the lovely thing 
below, any advice (dmd 2.060)?

rdmd --chatty --force --build-only ..\lib\libcairo-2.lib -I..\include 
..\lib\libcairod.lib ..\lib\dmd_win32_x32.lib -version=Unicode 
-version=WIN32_WINNT_ONLY -version=WindowsNTonly -version=Windows2000 
-version=Windows2003 -version=WindowsXP -version=WindowsVista 
-version=CAIRO_HAS_PS_SURFACE -version=CAIRO_HAS_PDF_SURFACE 
-version=CAIRO_HAS_SVG_SURFACE -version=CAIRO_HAS_WIN32_SURFACE 
-version=CAIRO_HAS_PNG_FUNCTIONS -version=CAIRO_HAS_WIN32_FONT 
-L-Subsystem:Windows main.d

"dmd" "..\lib\libcairo-2.lib" "-I..\include" "..\lib\libcairod.lib" 
"..\lib\dmd_win32_x32.lib" "-version=Unicode" 
"-version=WIN32_WINNT_ONLY" "-version=WindowsNTonly" 
"-version=Windows2000" "-version=Windows2003" "-version=WindowsXP" 
"-version=WindowsVista" "-version=CAIRO_HAS_PS_SURFACE" 
"-version=CAIRO_HAS_PDF_SURFACE" "-version=CAIRO_HAS_SVG_SURFACE" 
"-version=CAIRO_HAS_WIN32_SURFACE" "-version=CAIRO_HAS_PNG_FUNCTIONS" 
"-version=CAIRO_HAS_WIN32_FONT" "-L-Subsystem:Windows" "-v" "-o-" 
"main.d" "-I."
"dmd" 
"@C:\Users\FA\AppData\Local\Temp\.rdmd\rdmd-main.d-3E1D6779F7085177FB593D4351477E84\rdmd.rsp"
[terminate]

On a side-note, why is rdmd picky about argument order?

 >dmd test.d -I..\include
test.d(2): Error: module missing is in file 'missing.d' which cannot be read
import path[0] = ..\include
import path[1] = C:\_Prog\D\dmd2\windows\bin\..\..\src\phobos
import path[2] = C:\_Prog\D\dmd2\windows\bin\..\..\src\druntime\import

 >rdmd test.d -I..\include
test.d(2): Error: module missing is in file 'missing.d' which cannot be read
import path[0] = .
import path[1] = C:\_Prog\D\dmd2\windows\bin\..\..\src\phobos
import path[2] = C:\_Prog\D\dmd2\windows\bin\..\..\src\druntime\import

 >rdmd -I..\include test.d
test.d(2): Error: module missing is in file 'missing.d' which cannot be read
import path[0] = ..\include
import path[1] = .
import path[2] = C:\_Prog\D\dmd2\windows\bin\..\..\src\phobos
import path[3] = C:\_Prog\D\dmd2\windows\bin\..\..\src\druntime\import


More information about the Digitalmars-d-learn mailing list