Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-12

How to save compiled units for other programs to use?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Crone, Thomas J.

I'm using Lazarus IDE v1.0.2 on Windows 7.

With my old Delphi (v4), I'd compile a unit and copy the .dcu file to the Delphi lib folder so other programs with "USES unitname" would find it. I guess with Lazarus, I need to put the .ppu file somewhere? where?

Thank you

Tom Crone

Reply by email

Sven Barth
to Crone, Thomas J.
Thomas J. wrote 5 lines
I'm using Lazarus IDE v1.0.2 on Windows 7. With my old Delphi (v4), I'd compile a unit and copy the .dcu file to the Delphi lib folder so other programs with "USES unitname" would find it. I guess with Lazarus, I need to put the .ppu file somewhere? where?

You need the *.o, *.ppu (and maybe also *.rst files) and also eventual *.lfm files. You need to copy them to a directory and then add a search path to that directory.

Better yet: make use of Lazarus packages. That's what they are there for (and no, you don't need to install them in the IDE for this). For more information see here: http://wiki.freepascal.org/Lazarus_Packages

Regards,
Sven

Reply by email

Mattias Gaertner
to Crone, Thomas J.: I'm using Lazarus IDE v1.0.2 on Windows 7. With my old Delphi (v4), I'd compile a unit…

"Crone, Thomas J." hat am 15. Dezember 2012 um 21:03 geschrieben:

Show quoted text 5 lines
I'm using Lazarus IDE v1.0.2 on Windows 7. With my old Delphi (v4), I'd compile a unit and copy the .dcu file to the Delphi lib folder so other programs with "USES unitname" would find it. I guess with Lazarus, I need to put the .ppu file somewhere? where?

Add the unit (.pas) to a package and use the package in any project needing the unit.
The .ppu files are automatically created/updated by the IDE.

Mattias

Reply by email