www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2493] New: link error trying to compile simple program

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

           Summary: link error trying to compile simple program
           Product: D
           Version: 2.021
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jlquinn optonline.net


-*- mode: compilation; default-directory: "~/d/" -*-
Compilation started at Sat Dec  6 14:01:01

~/dmd/bin/dmd bug2.d
bug2.o:(.data._D4bug212__T3vecTAyaZ3vec6__vtblZ+0x4): undefined reference to
`_D6object6Object5printMFZv'
collect2: ld returned 1 exit status
--- errorlevel 1

Compilation exited abnormally with code 1 at Sat Dec  6 14:01:02


-- 
Dec 06 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2493






Created an attachment (id=280)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=280&action=view)
program that fails to link


-- 
Dec 06 2008
prev sibling next sibling parent reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2493


jlquinn optonline.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression





This is actually a regression


-- 
Dec 09 2008
parent Brad Roberts <braddr puremagic.com> writes:
d-bugmail puremagic.com wrote:
 http://d.puremagic.com/issues/show_bug.cgi?id=2493
 
 
 jlquinn optonline.net changed:
 
            What    |Removed                     |Added
 ----------------------------------------------------------------------------
            Severity|normal                      |regression
 
 
 
 

 This is actually a regression
 
 
For a regression, it'd be good to indicate what version didn't contain the bug. IE, it worked last at version X and broke starting at version Y. In this case, did it work at 2.020 and fail with 2.021? Thanks, Brad
Dec 09 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2493


bugzilla digitalmars.com changed:

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





The print() function was removed from Object, due to popular demand. The fact
that something is referencing it suggests that an old libphobos2.a is being
linked in rather than the one that matches the new phobos sources.

It works when I try it.


-- 
Dec 11 2008