[Lazarus] Some thoughts about the global 'Application' instance.

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jun 29 17:17:29 CEST 2009


On Mon, 29 Jun 2009 16:59:23 +0200
Joost van der Sluis <joost at cnoc.nl> wrote:

> Op maandag 29-06-2009 om 16:43 uur [tijdzone +0200], schreef Vincent
> Snijders:
> > Joost van der Sluis schreef:
> > > 
> > > But it would be nice if I could use LResources again, without
> > > using forms, but that's another story.
> > > 
> > 
> > I took a quick look, but i don't see how adding LResources add a
> > dependency on forms.
> > 
> > I created a new program (not an application), added LResources to
> > the uses section and LCL as requirement. It compiled without
> > linking errors.
> 
> Hmm. I can't test it now, because Lazarus doesn't even link at all at
> the moment.
> 
> But in my experience, if linking fails or succeeds is more something I
> would call 'luck', than anything logical. ;(

Please try to reproduce the bug and give the FPC team at least some
hints.
See here for one of those spooky linker errors
http://bugs.freepascal.org/view.php?id=13840

 
> I think it also has something to do with the debug-information. One of
> my theories is that when you have compiled Lazarus with a rtl with
> debuginformation, and thereafter the debuginformation is removed from
> the rtl, you have to make clean and recompile Lazarus completely.
>  
> And the same holds for parts of the fcl and such.
> 
> But this theory fails on me as Lazarus is not linking now at all...
> Maybe an old .ppu somewhere which is not cleaned properly...

Yes. Golden hint: if it does not link, try a 'make clean all'.

Mattias




More information about the Lazarus mailing list