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.
In fact, FLTK and CLTK are written specifically for static linking for
bindings (licence allow that), they solvedĀ "Static Initialization Order
Fiasco" in the code
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal