<div dir="auto">Error code 0xC1 appears to translate to: <div dir="auto"><br><div dir="auto"><dt style="color:rgb(69,69,69);font-family:"segoe ui","lucida grande",verdana,arial,helvetica,sans-serif;font-size:14px"><strong>ERROR_BAD_EXE_FORMAT</strong></dt><dd style="color:rgb(69,69,69);font-family:"segoe ui","lucida grande",verdana,arial,helvetica,sans-serif;font-size:14px"><dl><dt>193 (0xC1)</dt><dt><p style="margin:0px;padding-bottom:15px;line-height:1.429em!important">%1 is not a valid Win32 application</p></dt></dl></dd></div></div><div class="gmail_extra" dir="auto"><div class="gmail_quote" dir="auto">Maybe the clang binary is 32 bit after all? </div><div class="gmail_quote" dir="auto"><br></div><div class="gmail_quote" dir="auto">- Kim</div><div class="gmail_quote" dir="auto"><br></div><div class="gmail_quote">Den 17 juli 2017 5:44 em skrev "Marcel Schaible via cfe-dev" <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have developed a plugin for clang (latest version from svn). The plugin (x64) loads and executes just fine with the clang I have build from my svn tree. But when I try to load the plugin into the official binary clang distribution (LLVM-4.0.1-win64) I'll get the error below.<br>
<br>
I suspect that I have to link the dll with some special options. Is there somewhere a description of the build environment for Visual Studio?<br>
<br>
Btw: I am building the stuff with Visual Studio 2017 Enterprise.<br>
<br>
<br>
"c:\Program Files\LLVM\bin\clang"  -fplugin=MyPlugin.dll  -c d:\clang+llvm\tests\simple.c -o d:\clang+llvm\tests\simple.o<br>
<br>
error: unable to load plugin 'MyPlugin.dll': 'MyPlugin.dll: Can't open: Unknown error (0xC1)'<br>
<br>
Thanks for your help<br>
<br>
Marcel<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div>