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: unassignedclangb...@nondot.org Reporter: amine.kha...@reactos.org CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs