www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 389] New: Cannot link to std.path.altsep

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=389

           Summary: Cannot link to std.path.altsep
           Product: D
           Version: 0.167
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: digitalmars-com baysmith.com


----- pathTest.d -----
private {
        import std.path;
        import std.stdio;
}

void main() {
        writefln("test", altsep, "path");
}
----------

$ dmd pathTest.d
gcc pathTest.o -o pathTest -m32 -lphobos -lpthread -lm -Xlinker
-L/home/bsmith/tools/d/dmd/lib
pathTest.o: In function `_Dmain':
pathTest.d:(.gnu.linkonce.t_Dmain+0x10): undefined reference to
`_D3std4path6altsepG0a'
collect2: ld returned 1 exit status
--- errorlevel 1


-- 
Sep 29 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-09-29:
 http://d.puremagic.com/issues/show_bug.cgi?id=389

 ----- pathTest.d -----
 private {
         import std.path;
         import std.stdio;
 }

 void main() {
         writefln("test", altsep, "path");
 }
 ----------

 $ dmd pathTest.d
 gcc pathTest.o -o pathTest -m32 -lphobos -lpthread -lm -Xlinker
 -L/home/bsmith/tools/d/dmd/lib
 pathTest.o: In function `_Dmain':
 pathTest.d:(.gnu.linkonce.t_Dmain+0x10): undefined reference to
 `_D3std4path6altsepG0a'
 collect2: ld returned 1 exit status
 --- errorlevel 1

Added to DStress as http://dstress.kuehne.cn/run/c/const_39_A.d http://dstress.kuehne.cn/run/c/const_39_B.d http://dstress.kuehne.cn/run/c/const_39_C.d http://dstress.kuehne.cn/run/c/const_39_D.d http://dstress.kuehne.cn/run/c/const_39_E.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFIMlELK5blCcjpWoRApGxAJsHTlWH4PCsIYycsRAl42/DyhCw/wCgmFTi JUlqON98o1iMHAPzxNOXHyc= =Atst -----END PGP SIGNATURE-----
Oct 02 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=389


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from bugzilla digitalmars.com  2006-11-25 03:52 -------
Fixed DMD 0.175


-- 
Nov 25 2006