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

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

2024-02-16 Thread Sven Barth via fpc-pascal
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 extern

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

2024-02-16 Thread Tony Whyman via fpc-pascal
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 name>" directive. The "".a" libra