[Lazarus] importing program into lazarus project

Marc Santhoff M.Santhoff at t-online.de
Mon Jul 21 17:10:31 CEST 2008


Am Montag, den 21.07.2008, 08:45 +0200 schrieb Graeme Geldenhuys:
> On Mon, Jul 21, 2008 at 12:38 AM, Marc Santhoff <M.Santhoff at t-online.de> wrote:
> > I have a program written using fpc only that I'd like to import into a
> > lazarus project. How can this be done the easiest way?
> 
> Simply load Lazarus with a blank Lazarus project. Then open the main
> unit (program) of your fpc project using 'File | Open'...  Lazarus
> will detect it's a 'program' and ask if it can manage it. Say yes.
> Lazarus would now have created a new .lpi file for your fpc program.
> Save the project and you are ready to go.

That was it. I knew it could be done very simple, but using file-open
slipped me while looking at all those project types. :)

> > And what is the difference between "custom program" and "program"
> > project types,
> 
> No idea what's the difference. All I know is that "program" is a Free
> Pascal program and Lazarus maintains the .lpi (Lazarus Project
> Information) file for that program.

The descriptions of the projects tell something about that topic.
Command line parsing may be an issue, the uses line is mostly fixed.

Thanks,
Marc





More information about the Lazarus mailing list