[fpc-pascal]QT libs

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Apr 17 09:34:12 CEST 2002

On Wed, 17 Apr 2002, Christophe wrote:

> Hello
> I'm Christophe a french Object Pascal developper.
> I'm writing a wrapper for Sablotron named Sablopas. I've just
> release the 0.5. The current version compiles with Free Pascal
> for Windows, Kylix and Delphi. Sablopas is Open Source.
> http://www.tekool.com/sablopas
> I'm currently porting to Free Pascal for Linux. I can compile, link
> libraries and run the demo but only in a strange way :
> 1/ I use the -Xt switch and I don't know what it is. I've forgot
> where I've found it. It is the only way for linker to link Sablotron
> and Expat.

It means 'link statically' - the linker will use static libraries.
I just discovered that this is not documented :/

> 2/ My executable is now 1.2Mb . Under Windows it's 90Kb.

This is because you link statically: All libraries are in the

> Configuration used :
> I've used declarations like : procedure procname;cdecl; external SAB_LIB;
> I've declared dlopen and dlclose the same way. I use them to load and unload
> Expat in the initialization / finalization sections of the first unit load.
> I use the {$LINKLIB} directive for Expat and the c library.

But then expat will already be linked in and there is no need to reload
them with dlopen/dlclose ?


More information about the fpc-pascal mailing list