<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - unresolved external symbol ___annotation"
href="https://llvm.org/bugs/show_bug.cgi?id=30932">30932</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>unresolved external symbol ___annotation
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>amine.khaldi@reactos.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>