[Lazarus] Adding a Form to the (Lazarus) IDE

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 5 19:50:38 CEST 2010


On Mon, 5 Apr 2010 02:31:57 -0300
Flávio Etrusco <flavio.etrusco at gmail.com> wrote:

> Hello all,
> what's the recommended steps while adding a new form to Lazarus? I
> couldn't find anything related on the wiki.

It depends on what form where.
For the IDE you can use the ide/lazarus.lpi and create a new unit/form. 


> Also, I was trying to add a form to Lazarus and I was getting the
> following error:
> 
> Compiling lazarus.pp
> Compiling /home/etrusco/Projects/lazarus/debugger/debugger.pp
> debugger.pp(32,6) Error: Illegal unit name: Debugger

It can mean you renamed a unit, but forget to clean up the old ppus.


> debugger.pp(1428,1) Fatal: There were 1 errors compiling module, stopping
> 
> Context: at first (after creating the form and changing code to use
> it, etc) the IDE was compiling fine. For some other (and unknown)
> reason I lost the new files, and when I created new ones I started
> getting this error. I tried cleaning intermediary files, checked unit
> names, checked that project files weren't modified, and couldn't find
> any suspect. Then, out of a sudden the error disappeared (In the
> meantime I removed references to the new file, renamed the file, then
> renamed it back and restored the reference). Any ideas/explanations?

The compiler does not delete old ppu files, if the source vanished.
Combined with a special rename this can lead to the above error.
That's why the IDE auto deletes ppu files when renaming. But since the
references in the other ppu files are still there, it would be better if
the IDE deletes all related ppu files.


Mattias




More information about the Lazarus mailing list