[fpc-pascal] Linker switch

Sven Barth pascaldragon at googlemail.com
Tue Feb 18 14:12:05 CET 2020


- via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am Di., 18. Feb.
2020, 13:16:

> Hi,
>
> A while ago (5 years) I made an application where I had to add -k-lxxxx
> to the command-line the compile that application.
> Is there a way to add this in the source ?
> I spent a good time to find out how I compiled that application last
> time. Fortunately .bash_history saved me.
>

If it is to add a library or object file then you can do this using
$L/$Link (
https://freepascal.org/docs-html/current/prog/progsu43.html#x50-490001.2.43
) or $LinkLib (
https://freepascal.org/docs-html/current/prog/progsu46.html#x53-520001.2.46
).
If you provide more information about what exactly you pass to the linker
we can help you more.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200218/b9f31e63/attachment.html>


More information about the fpc-pascal mailing list