Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread R0b0t1 via Lazarus
Sorry list, I'm trying to stop my double posting. On Tuesday, November 28, 2017, R0b0t1 wrote: > Hello, > > On Tuesday, November 28, 2017, Mattias Gaertner via Lazarus < lazarus@lists.lazarus-ide.org> wrote: >> On Tue, 28 Nov 2017 10:46:01 -0600 >> R0b0t1 via Lazarus wrote: >> >>>[...] >>> To be

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread R0b0t1 via Lazarus
Hello, On Tuesday, November 28, 2017, Mattias Gaertner via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Tue, 28 Nov 2017 10:46:01 -0600 > R0b0t1 via Lazarus wrote: > >>[...] >> To be clear, for some reason most of the time the unit (and every >> other unit) was rebuilding properly, but on

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread Donald Ziesig via Lazarus
On 11/28/2017 05:50 AM, Mattias Gaertner via Lazarus wrote: On Tue, 28 Nov 2017 08:41:05 -0200 "Marcos Douglas B. Santos via Lazarus" wrote: [...] Are your 'Other unit files (-Fu)' paths in project inspector and your package empty? And is this correct, package empty? It is normal. Mattias

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread Mattias Gaertner via Lazarus
On Tue, 28 Nov 2017 10:46:01 -0600 R0b0t1 via Lazarus wrote: >[...] > To be clear, for some reason most of the time the unit (and every > other unit) was rebuilding properly, but one time it didn't. Perhaps > it is a linking issue? If you cannot reproduce it then your issue is not related to thi

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread R0b0t1 via Lazarus
Apologies for the additional post: On Tue, Nov 28, 2017 at 10:44 AM, R0b0t1 wrote: > Hello, > > On Mon, Nov 27, 2017 at 12:15 PM, Donald Ziesig via Lazarus > wrote: >> Hi All! >> >> I have been having a problem for a long, long time when developing/debugging >> code which is included in a packag

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread R0b0t1 via Lazarus
Hello, On Mon, Nov 27, 2017 at 12:15 PM, Donald Ziesig via Lazarus wrote: > Hi All! > > I have been having a problem for a long, long time when developing/debugging > code which is included in a package and which contains generics. > > It took me years :'(, but I finally figured out what I was do

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread Mattias Gaertner via Lazarus
On Tue, 28 Nov 2017 09:01:56 -0200 "Marcos Douglas B. Santos via Lazarus" wrote: > On Tue, Nov 28, 2017 at 8:50 AM, Mattias Gaertner via Lazarus > wrote: > > On Tue, 28 Nov 2017 08:41:05 -0200 > > "Marcos Douglas B. Santos via Lazarus" > > wrote: > > > >>[...] > >> > Are your 'Other unit fi

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread Marcos Douglas B. Santos via Lazarus
On Tue, Nov 28, 2017 at 8:50 AM, Mattias Gaertner via Lazarus wrote: > On Tue, 28 Nov 2017 08:41:05 -0200 > "Marcos Douglas B. Santos via Lazarus" > wrote: > >>[...] >> > Are your 'Other unit files (-Fu)' paths in project inspector and >> > your package empty? >> >> And is this correct, package e

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread Mattias Gaertner via Lazarus
On Tue, 28 Nov 2017 08:41:05 -0200 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > > Are your 'Other unit files (-Fu)' paths in project inspector and > > your package empty? > > And is this correct, package empty? It is normal. Mattias -- _

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread Marcos Douglas B. Santos via Lazarus
On Mon, Nov 27, 2017 at 4:41 PM, Mattias Gaertner via Lazarus wrote: > On Mon, 27 Nov 2017 13:33:13 -0500 > Donald Ziesig via Lazarus wrote: > >>[...] >> > When you change a pas file of your package and you compile your project, >> > does the IDE automatically compile your package? >> Yes (at lea

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-27 Thread Donald Ziesig via Lazarus
On 11/27/2017 04:27 PM, Mattias Gaertner via Lazarus wrote: On Mon, 27 Nov 2017 15:52:09 -0500 Donald Ziesig via Lazarus wrote: [...] Are your 'Other unit files (-Fu)' paths in project inspector and your package empty? Yes, both are empty. Good. If your project and packages have their own d

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-27 Thread Mattias Gaertner via Lazarus
On Mon, 27 Nov 2017 15:52:09 -0500 Donald Ziesig via Lazarus wrote: >[...] > > Are your 'Other unit files (-Fu)' paths in project inspector and > > your package empty? > Yes, both are empty. Good. If your project and packages have their own directories, it seems you found a compiler bug. Can

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-27 Thread Donald Ziesig via Lazarus
On 11/27/2017 01:41 PM, Mattias Gaertner via Lazarus wrote: On Mon, 27 Nov 2017 13:33:13 -0500 Donald Ziesig via Lazarus wrote: [...] When you change a pas file of your package and you compile your project, does the IDE automatically compile your package? Yes (at least it catches typos).  Al

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-27 Thread Mattias Gaertner via Lazarus
On Mon, 27 Nov 2017 13:33:13 -0500 Donald Ziesig via Lazarus wrote: >[...] > > When you change a pas file of your package and you compile your project, > > does the IDE automatically compile your package? > Yes (at least it catches typos).  Also, the same problem occurs when I > compile the pa

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-27 Thread Donald Ziesig via Lazarus
On 11/27/2017 01:28 PM, Mattias Gaertner via Lazarus wrote: On Mon, 27 Nov 2017 13:15:36 -0500 Donald Ziesig via Lazarus wrote: [...] TL;DR   Library packages which declare generics do compile, but do not get included in the code that specializes them unless I "Cleanup and build" the whole pro

Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-27 Thread Mattias Gaertner via Lazarus
On Mon, 27 Nov 2017 13:15:36 -0500 Donald Ziesig via Lazarus wrote: >[...] > TL;DR   Library packages which declare generics do compile, but do not > get included in the code that specializes them unless I "Cleanup and > build" the whole program.  (Workable, but much *slower* than programs > w

[Lazarus] Compiling/linking/debugging package with generics

2017-11-27 Thread Donald Ziesig via Lazarus
Hi All! I have been having a problem for a long, long time when developing/debugging code which is included in a *package* and which contains *generics*. It took me years :'(, but I finally figured out what I was doing so that I could cause the issue to appear consistently. :-[ My usual de