[fpc-pascal] TFieldType declaration change in fixes2_2 branch

2021-10-16 Thread tony.whyman via fpc-pascal
I thought that a fixes branch was only for bug fixes and not for issuing 
non-backwards compatible changes. However, TFieldType in db.pas now has 6 extra 
elements.The result is that IBX no longer compiles with the fixes_2_2 branch. I 
have also heard the same for zeoslib.Is the rollout of this patch to fixes_2_2 
a mistake, or is there a good reason for rolling out a change that breaks other 
packages?Tony WhymanMWA Software___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can FPC link a program with static (.a) libraries on Windows

2024-02-17 Thread tony.whyman via fpc-pascal
Thanks. Easy to forget that there are 3 ways to link to external libraries. 
 Original message From: Sven Barth via fpc-pascal 
 Date: 17/02/2024  00:29  (GMT+00:00) To: 
FPC-Pascal users discussions  Cc: Sven Barth 
 Subject: Re: [fpc-pascal] Can FPC link a program 
with static (.a) libraries on Windows Tony Whyman via fpc-pascal 
 schrieb am Sa., 17. Feb. 2024, 00:50:I have a 
Pascal program, compiled with FPC 3.2.2 and which appears to 
happily link and run with a static library compiled with gcc and having 
a ".a" prefix on linux. The functions in the static library and declared 
as external functions using the "external  name " directive. The "".a" library is copied to the same directory as 
the program unit before compiling and linking.

However, compiling the same program on Windows always seems to result in 
the loader complaining that the corresponding .dll is not 
present, indicating that instead of linking with the static library, the 
program is attempting to "statically" load the correspoinding dll at 
initialisation time.

I have tried to force it to link with the static library (e.g. using the 
-Xt command line switch) but no luck.

Hence the question, does FPC 3.2.2 support linking with static libraries 
on windows?"external  name " is for dynamic linking. For 
static linking you need to leave out the  and instead use "{$linklib 
}" or even "{$linklib , static}" . That will also work on 
Linux. Regards, Sven 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal