May 18, 2007 [Issue 1240] New: linker complains about undefined references when using AAs | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1240 Summary: linker complains about undefined references when using AAs Product: D Version: 1.014 Platform: PC OS/Version: Linux Status: NEW Severity: blocker Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: manuelk89@gmx.net 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 -- |
May 20, 2007 [Issue 1240] linker complains about undefined references when using AAs | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1240 thomas-dloop@kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from thomas-dloop@kuehne.cn 2007-05-20 13:11 ------- Your are using DMD-1.014 but your libphobos.a file is from version 1.012 or older. -- |
Copyright © 1999-2021 by the D Language Foundation