Graeme Geldenhuys wrote 9 lines
On Mon, Jul 21, 2008 at 12:38 AM, Marc Santhoff 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. :)
Show quoted text 6 lines
> 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