Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2020-02

Linker switch

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

-

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.

TIA,

Koenraad.

Reply by email

Sven Barth
to -

- via fpc-pascal schrieb am Di., 18. Feb.
2020, 13:16:

Show quoted text 8 lines
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

Reply by email