← Back to index
|
Original Bugzilla link
Bug 1240 – linker complains about undefined references when using AAs
Status
RESOLVED
Resolution
INVALID
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-05-18T13:42:00Z
Last change time
2014-02-16T15:24:00Z
Assigned to
bugzilla
Creator
manuelk89
Comments
Comment #0
by manuelk89 — 2007-05-18T13:42:22Z
When using AA-literals gcc complains about undefined references to `_d_assocarrayliteralT'. -- file: aaliteral.d --------------- void main() { int[int] aa; aa = [4:3, 7:2]; } ------------------------------------ compile session: $ dmd aaliteral.d gcc aaliteral.o -o aaliteral -m32 -Xlinker -L/home/manuel/dev/compiler/digitalmars/dmd/bin/../lib -lphobos -lpthread -lm aaliteral.o: In function `_Dmain': aaliteral.d:(.gnu.linkonce.t_Dmain+0x14): undefined reference to `_d_assocarrayliteralT' collect2: ld returned 1 exit status --- errorlevel 1
Comment #1
by thomas-dloop — 2007-05-20T13:11:25Z
Your are using DMD-1.014 but your libphobos.a file is from version 1.012 or older.