<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/143157>143157</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-windres gives error in file that other MinGW toolchains do not
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DerellLicht
</td>
</tr>
</table>
<pre>
I am building a project with clang project, downloaded from this website.
The project builds with no errors with TDM 10.3.0 and other MinGW packages, but gives this error with the clang package:
```
D:\clang\bin\windres winwiz.rc -v -O COFF -o rc.o
D:/clang/bin/i686-w64-mingw32-clang.exe --driver-mode=gcc -target i686-w64-mingw32 -E -xc -DRC_INVOKED winwiz.rc -o C:/Users/dan7m/AppData/Local/Temp/preproc-996694.rc
llvm-rc: Error parsing file: Invalid token found at position 10358
make: *** [rc.o] Error 1
```
The version info for this windres is:
```
D:\SourceCode\Git\winwiz Yes, Master?? > D:\clang\bin\windres --version
llvm-windres, compatible with GNU windres
LLVM (http://llvm.org/):
LLVM version 20.1.6
Optimized build.
```
The resource file can be viewed here; position 10358 appears to be in the middle of line 203
https://github.com/DerellLicht/winwiz/blob/master/winwiz.rc
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8VF1vpDYU_TWelyuQMQMzPPDAzoQoarKR2uxWfaqMfQfcGBvZZtjm11d8TBql1UqWEPb18fE514d7r1qDWJLsC8nOOz6GzrryjA61flSiC7vGyr_LB-A9NKPSUpkWOAzO_oUiwKRCB0Jz096mCDuBtJPRlkuUcHG2h9ApDxM2XgWMCa1eOnxHWED9CmQsoHPWbb8v5ydIaJzGFLiRYEOHDp6Uuf8dBi5eeYt-Pq0ZA7Tqin49Z0FYAUKHN3JrPUkrQpeR023Q6jzPZqelkGSnRhmSnSZlpMOZiJnUW-wERFeInuH0XNcQWXAitre9rF73snrey2qVH_NoyvdRr0w7pSxalmP8gRBF0qkruqi3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