[Issue 459] New: Setting LIB in dmd/bin/sc.ini has no effect on linking

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 25 15:50:44 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=459

           Summary: Setting LIB in dmd/bin/sc.ini has no effect on linking
           Product: D
           Version: 0.172
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: digitalmars-com at baysmith.com


Please read carefully. This sequence is different than Issue 454.
To reproduce problem:

Extract dmc.zip to C:\
Extract dmd.172.zip to C:\
Change directory to an alternate drive, for example "cd d:"
Create file test.d with the following contents:
  import std.stdio;
  void main() {
    writefln("test");
  }

set PATH=c:\dm\bin;c:\dmd\bin;%PATH%
dmd test.d
  --- Fails to link because phobos.lib is not found ---

Edit c:\dmd\bin\sc.ini to contain the following:
  LIB="%@P%\..\lib";"%@P%\..\..\dm\lib"

dmd test.d
  --- Still fails to link because phobos.lib is not found ---

Edit c:\dm\bin\sc.ini to contain the following:
  LIB="%@P%\..\lib";"%@P%\..\..\dmd\lib";"%@P%\..\mfc\lib";%LIB%

dmd test.d
  --- Now links successfully ---


-- 




More information about the Digitalmars-d-bugs mailing list