Bug 2493 – link error trying to compile simple program

Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-12-06T13:02:00Z
Last change time
2015-06-09T01:20:45Z
Keywords
link-failure
Assigned to
bugzilla
Creator
jlquinn

Attachments

IDFilenameSummaryContent-TypeSize
280bug2.dprogram that fails to linktext/x-dsrc316

Comments

Comment #0 by jlquinn — 2008-12-06T13:02:23Z
-*- 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
Comment #1 by jlquinn — 2008-12-06T13:03:15Z
Created attachment 280 program that fails to link
Comment #2 by jlquinn — 2008-12-09T22:48:25Z
This is actually a regression
Comment #3 by bugzilla — 2008-12-11T05:27:03Z
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.