Re: [fpc-pascal] linking issues

2004-11-26 Thread Marc Santhoff
Am Fr, den 26.11.2004 schrieb Peter Vreman um 10:32: [...] > > 2. > > When using ressourcestrings and thus linking to gettext, dynamic linking > > with -XD fails. The gettext library is linked statically any time, > > although gtk is linked dynamically. The small test program "restest" > > from the

Re: [fpc-pascal] linking issues

2004-11-26 Thread Marc Santhoff
Hi, I'm putting my answer here, thank you all so far. Using -XX is okay, I understood that (and it works, more than one third in space is omitted from the target program :). But with dynamic linking theres something left... For testing purposes I used "restest.pp" again: $ fpc -k-dynamic -s re

Re: [fpc-pascal] linking issues

2004-11-26 Thread Marco van de Voort
> I've got two questions on linking: > > 1. > If -XX is used ("try to link smart"), is there any risk of losing needed > code? Not likely. Only if you open the binary and read data from it. > The word "try" in this context irritates me ... don't understand if this > says "try and see if it work

Re: [fpc-pascal] linking issues

2004-11-26 Thread Peter Vreman
> Hi, > > I've got two questions on linking: > > 1. > If -XX is used ("try to link smart"), is there any risk of losing needed > code? > > The word "try" in this context irritates me ... don't understand if this > says "try and see if it works" or "try but your result might get > corrupted. When a

Re: [fpc-pascal] linking issues

2004-11-26 Thread Jonas Maebe
On 26 nov 2004, at 09:58, Marc Santhoff wrote: 1. If -XX is used ("try to link smart"), is there any risk of losing needed code? No. The word "try" in this context irritates me ... don't understand if this says "try and see if it works" or "try but your result might get corrupted. It means that i

[fpc-pascal] linking issues

2004-11-26 Thread Marc Santhoff
Hi, I've got two questions on linking: 1. If -XX is used ("try to link smart"), is there any risk of losing needed code? The word "try" in this context irritates me ... don't understand if this says "try and see if it works" or "try but your result might get corrupted. 2. When using ressourcest