[fpc-pascal]QT libs
Michael Van Canneyt
michael.vancanneyt at wisa.be
Wed Apr 17 14:34:32 CEST 2002
On Wed, 17 Apr 2002, Christophe wrote:
> Hello,
>
> First I'm sorry for this announce in a thread on QT.
> I push reply without changing the subject.
>
> >It means 'link statically' - the linker will use static libraries.
> >I just discovered that this is not documented :/
>
>
> Why when I don't use it the linker fails ?
Do you have all the dynamic libraries installed ?
(.so files of all libs must be present)
>
> >> 2/ My executable is now 1.2Mb . Under Windows it's 90Kb.
> >This is because you link statically: All libraries are in the
> executable!
>
> How can I do it in a different way ? Is smartlinking is candidate for ?
> How can I include only the symbols I used ?
First link dynamically. This will drastically reduce the size of the
executable.
>
> >But then expat will already be linked in and there is no need to reload
> >them with dlopen/dlclose ?
>
> Yes I know that. In fact I've solved a bug with that technique under Kylix.
> Under Kylix
> I must load Expat like this in the initialization function otherwise
> everthing fails.
But it IS linked in already since you use -Xt !!
Michael.
More information about the fpc-pascal
mailing list