<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thanks Kim, for your help.</p>
    <p>Unfortunately I have not found a solution. I have tried several
      combination (32/64bit) without success.</p>
    <p>I suspect that the VS2017 build is not compatible with the latest
      greatest clang build.<br>
    </p>
    <p>If I find the culprit I'll post it here.<br>
    </p>
    <p>- Marcel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Am 26.07.2017 um 10:09 schrieb Kim
      Gräsman:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANt7B+cgTCRNcN4TFFauKn7V5-KOm7pQ_P7pA6oeqTAON_a58A@mail.gmail.com">
      <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"
              moz-do-not-send="true">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"
                moz-do-not-send="true">cfe-dev@lists.llvm.org</a><br>
              <a
                href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>