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

Bart bartjunk64 at gmail.com
Sun Aug 22 13:56:56 CEST 2021


On Sun, Aug 22, 2021 at 1:51 PM wkitty42--- via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:

> if that Common.dll file is only valid for 64bit windows builds, perhaps the
> better thing to do is to wrap the $linklib line in a check to see if you are
> building 64bit... if 64bit then loadlib otherwise, noop... seems logical at
> first glance but the question then is if one can determine the bitness of the
> current build in progress...

Mind you that buidling the cross compiler (win32->64) works, but
AFAICS none of the other libraries are present on my system:
{$linklib clntsh}
{$linklib core4}
{$linklib nlsrtl3}
{$ifndef BSD}
{$linklib dl}
{$ENDIF}
{$linklib c}

Why does it not complain about either of these?
-- 
Bart


More information about the fpc-devel mailing list