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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 18 05:30:22 PDT 2008


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


gide at nwawudu.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major




------- Comment #1 from gide at nwawudu.com  2008-04-18 07:30 -------
Have a similar issue after downloading dmd-win32snapshot-0.4.0.zip from
www.fsdev.net and unzipping it to my D: drive. I edited the sc.ini to switch
from Tango to Phobos and I got the following error:

hello.d
-------
import std.stdio;

void main() {   
        writefln("Hello World");
}

D:\test>dmd hello.d
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
SNN.lib
 Warning 2: File Not Found SNN.lib
hello.obj(hello)
 Error 42: Symbol Undefined ......

To fix, I changed LIB line in D:\dmd-win32snapshot-0.4.0\dmd\dmd\bin\sc.ini as
follows:
  LIB="%@P%\..\lib";\dm\lib
- to -
  LIB="%@P%\..\lib;%@P%\..\..\dm\lib"

Can the sc.ini's in dmc and dmd zips be fixed?


-- 



More information about the Digitalmars-d-bugs mailing list