[LLVMbugs] [Bug 10305] New: error LNK2019: unresolved external symbol ___umoddi3 referenced in function _main

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 7 15:30:12 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10305

           Summary: error LNK2019: unresolved external symbol ___umoddi3
                    referenced in function _main
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jlerouge at apple.com
                CC: llvmbugs at cs.uiuc.edu


On windows, using clang built with msvc (following
http://clang.llvm.org/get_started.html), the following code doesn't link:

int main(int argc, char **argv) {
    unsigned long long i = argc;
    unsigned long long j = argc + (int) argv;
    return i % j;
}

c:\> clang -o t.exe t.c
cc-524958.o : error LNK2019: unresolved external symbol ___umoddi3 referenced
in function _main
t.exe : fatal error LNK1120: 1 unresolved externals

Is this expected ?

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list