← Back to index
|
Original Bugzilla link
Bug 27 – undefined reference to: __ULLNGDBL
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-03-09T01:06:00Z
Last change time
2014-02-15T02:15:22Z
Keywords
link-failure
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2006-03-09T01:06:59Z
# int main(){ # size_t border = 8; # # for(ulong i = 0; i < border; i++){ # ulong test = 1; # test <<= i; # double r = test; # ulong result = cast(ulong)r; # # if(result != test){ # assert(0); # } # } # # return 0; # } Fails to link with "-O". dmd -O a.d > gcc a.o -o a -lphobos -lpthread -lm -Xlinker -L/opt/dmd/dmd/lib > a.o: In function `_Dmain': > a.d:(.gnu.linkonce.t_Dmain+0x33): undefined reference to `__ULLNGDBL' > collect2: ld returned 1 exit status > --- errorlevel 1 test case:
http://dstress.kuehne.cn/run/i/ieee_754_int2flt_F.d
Comment #1
by bugzilla — 2006-03-20T22:21:51Z
Fixed 0.150