[fpc-devel] Building trunk of today fails on Windows: Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size

Yuriy Sydorov jura at cp-lab.com
Mon Aug 23 20:14:57 CEST 2021


On August 23, 2021 19:41:41 Bart via fpc-devel 
<fpc-devel at lists.freepascal.org> wrote:

> On Mon, Aug 23, 2021 at 3:35 PM Yuriy Sydorov via fpc-devel
> <fpc-devel at lists.freepascal.org> wrote:
>
>> Just move common.dll from SysWOW64 to system32. The file is placed wrongly
>> by some installer.
>
> If I understand Tomas correctly then that would not make any
> difference: wether or not that specific common.dll is in system2 or
> syswow64, Windows just makes fpc believe it is in system32 anyway, AND
> fpc decides this is the wrong common.dll and aborts.

On 64bit Windows system32 contains only 64 bit system files. syswow64 
contains only 32 bit files and is seen as system32 for 32 bit apps. For 
some reason you have the 64 bit dll in the 32 bit syswow64 folder. You need 
to move this dll to the proper folder (system32).

Yuriy.




More information about the fpc-devel mailing list