<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I'm trying to avoid removing the $linklib statement, but
      currently it's the only way to build the i386-win32 compiler on my
      64-bit system.  I'm suggesting turning the error into a warning,
      if the correct DLL can't be found, because it doesn't affect
      successful compilation of the unit.</p>
    <p>Of course, being able to locate the correct 32-bit DLL or some
      such is better overall, although I would still propose a warning
      over an error.</p>
    <p>Gareth aka. Kit<br>
    </p>
    <div class="moz-cite-prefix">On 06/04/2021 09:42, Michael Van
      Canneyt via fpc-devel wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.22.394.2104061041030.708684@home">
      <br>
      <br>
      On Tue, 6 Apr 2021, Florian Klämpfl via fpc-devel wrote:
      <br>
      <br>
      <blockquote type="cite">
        <br>
        <br>
        <blockquote type="cite">Am 06.04.2021 um 07:37 schrieb Sven
          Barth via fpc-devel <a class="moz-txt-link-rfc2396E" href="mailto:fpc-devel@lists.freepascal.org"><fpc-devel@lists.freepascal.org></a>:
          <br>
          <br>
          Am 05.04.2021 um 20:33 schrieb J. Gareth Moreton via
          fpc-devel:
          <br>
          <blockquote type="cite">Hi everyone,
            <br>
            <br>
            I have a slightly annoying error when building the compiler
            for i386-win32.  I mentioned it to Sven a while ago, and the
            cause is due to the fact that my copy of common.dll is
            64-bit, not 32-bit (as Sven confirmed for me).
            <br>
            <br>
            Compiling .\oracle\src\oraoci.pp
            <br>
            oraoci.pp(1437) Error: Invalid DLL
            C:\WINDOWS\system32\common.dll, invalid header size
            <br>
            oraoci.pp(1437) Fatal: There were 1 errors compiling module,
            stopping
            <br>
            Fatal: Compilation aborted
            <br>
            <br>
            Simply commenting out "{$linklib common}" on line 19 of the
            above file fixes the problem.  I would like to propose that
            this error be changed to a warning, since apparently not
            having the library present doesn't cause issues for
            compilation, just possibly execution later on.
            <br>
          </blockquote>
          <br>
          No. If you have a messed up system, that is not *our* fault.
          <br>
        </blockquote>
        <br>
        But isn’t the complaint valid to a certain degree: if one cross
        compiles from x86_64-win64 to i386-win32, then the wrong DLLs
        are checked due to folder redirection, no? We have only code in
        place for the other direction (i386-win32 to x86_64-win64).
        <br>
      </blockquote>
      <br>
      The weird behaviour of windows is is not a valid reason to remove
      a {$linklib} statement.
      <br>
      <br>
      Michael.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
    </blockquote>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>