[Bug 27] New: undefined reference to: __ULLNGDBL

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 8 23:07:00 PST 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=27

           Summary: undefined reference to: __ULLNGDBL
           Product: D
           Version: 0.149
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: link-failure
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: walter at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


# 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


-- 




More information about the Digitalmars-d-bugs mailing list