On Wed, 24 Jun 2026, Dibo via fpc-pascal wrote:
VersionĀ 1.5.23.4. Finally solved issues with static linking. It turned
out that FPC while linking doesn't call everything as g++ call while
linking. I had to write patch. Does anyone know why it is needed and why
FPC doesn't call this by default? This is a code which I need to call in
my bindings at first thing before anything else:
FPC does not really support linking to C++ libraries. The usual mechanism is
to write a C library that sits between FPC/C++, which handles initialization.
Probably there will be other initialization routines that must be called,
you will likely discover them one by one, whenever a new widget is used that
needs one.
Michael.
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal