[llvm-bugs] [Bug 30932] New: unresolved external symbol ___annotation

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 7 04:51:58 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=30932

            Bug ID: 30932
           Summary: unresolved external symbol ___annotation
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: amine.khaldi at reactos.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

This issue happens when linking the ReactOS kernel. Reduced to:

int main(void)
{
    __annotation(L"foo");
    return 0;
}

cl compiles it without errors, but clang-cl emits:

warning: implicit declaration of function '__annotation' is invalid in C99
      [-Wimplicit-function-declaration]
    __annotation(L"foo");
    ^
1 warning generated.
cpu-8841b9-36a90f.obj : error LNK2019: unresolved external symbol ___annotation
referenced in function _main
cpu-8841b9.exe : fatal error LNK1120: 1 unresolved externals
clang-cl.exe: error: linker command failed with exit code 1120 (use -v to see
invocation)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161107/edd6b7da/attachment.html>


More information about the llvm-bugs mailing list