Having stumbled over this problem last year, I now have a very simple
rule (and which seems to work).
If you are linking with an external static library (e.g. libssl.a) then
you omit the external library name on each function call, but must
include a $LINKLIB e.g. ($LINKLIB ssl.a}.
If you ar
You may find that compiling with "{$OBJECTCHECKS OFF}" allows your
program to run and as long as your object hasĀ no virtual methods norĀ
does it require its fields to be initialised to zero, then it might even
give a useful result - otherwise, you also need to call InitInstance.
On 04/06/2024
ironments.
Tony Whyman
On 02/05/2024 13:55, Michael Van Canneyt via fpc-pascal wrote:
On Thu, 2 May 2024, Tony Whyman via fpc-pascal wrote:
This is a problem reported to me by an IBX user. I have not yet
confirmed it (need to find the time to set up the latest development
branch of FPC),
This is a problem reported to me by an IBX user. I have not yet
confirmed it (need to find the time to set up the latest development
branch of FPC), but the issue looks solid, and is due to the following
addition to TObject (copied from the GitLab master branch)
|TObject = class|{$IFDEF SYSTEM
If you want to use OpenSSL then you might be interesting in trying out
my proposed update to the Indy components. This is to support the latest
versions of OpenSSL and can be downloaded from:
https://github.com/MWASoftware/Indy.proposedUpdate
There is a test case in Test/OpenSSL/openssl-server
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
"Swiss computer scientist Professor Niklaus Wirth died on New Year's
Day, roughly six weeks before what would have been his 90th birthday."
https://www.theregister.com/2024/01/04/niklaus_wirth_obituary/?utm_source=daily&utm_medium=newsletter&utm_content=top-article
_
On 16/12/2023 19:07, Gerhard Scholz via fpc-pascal wrote:
ELSE/OTHERWISE
I assume that came historically; the first implementation of a PASCAL
compiler I have seen had no else or otherwise in the case startement.
Some ater dialects introduced ELSE, other dialect(s) used OTHERWISE,
FPC then a
This issue seems to be still open after one year. There was a proposed
fix: https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/158.
However the discussion seems to tail off without an obvious resolution.
This is a clear bug in fpwidestring and needs to be fixed. What is the
status?
Once upon a time (late-1990s) I had some reasonable success (shareware)
marketing a JPEG library for Delphi. This was a wrapper around the
Independent JPEG Group's JPEG software which was written in 'C'. My JPEG
library had thus to link to a 'C' library and both dynamic and static
linking was o
Yes - but is that really a bug fix that justifies a non-backwards
compatible change?
On 17/10/2021 11:09, Michael Van Canneyt via fpc-pascal wrote:
On Sun, 17 Oct 2021, Tony Whyman via fpc-pascal wrote:
/Reposted with correct branch identifier/.
I thought that a fixes branch was only for
/Reposted with correct branch identifier/.
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_3_2 branch. I
have also heard
Yep, that's the golden rule in networking. The only way that you know
that a bi-directional path is open is an end-to-end ping. Even then, you
only know that it's open at the time the ping completed.
If you are using TCP then you can always enable keepalive packets that
effectively do the same
A TCP connection is no more than a pair of byte streams - one in each
direction. You have to define your own structure for each byte stream and the
procedures for use i.e. a protocol. lt will be easier if you can use a standard
protocol such as http. An http POST is one way to send an array of b
lf Of Tony
Whyman via fpc-pascal
Sent: Tuesday, September 8, 2020 7:21 AM
To: fpc-pascal@lists.freepascal.org
Cc: Tony Whyman
Subject: Re: [fpc-pascal] Help with TList example
Two observations:
1. In Pascal you should use "new" and "dispose" to allocate and deallocate
reco
Two observations:
1. In Pascal you should use "new" and "dispose" to allocate and
deallocate record types - not GetMem and FreeMem.
2. MyRec is a pointer type and you should code the line as
MyRec^.Value := tmp
On 08/09/2020 12:10, James Richters via fpc-pascal wrote:
I'm trying to figure
On 01/09/2020 14:29, Ryan Joseph via fpc-pascal wrote:
On Sep 1, 2020, at 7:46 PM, Tony Whyman via fpc-pascal
wrote:
fpcmake is a pre-processor that generates makefiles for fpc projects. You can
use it to do just about anything a standard makefile can do, including
including resource
fpcmake is a pre-processor that generates makefiles for fpc projects.
You can use it to do just about anything a standard makefile can do,
including including resource files and running scripts. I use it all the
time for building production versions of lazarus programs and prior to
packaging th
18 matches
Mail list logo