[Lazarus] How to include nxPascal: newby question

stdreamer stdreamer at freemail.gr
Mon Oct 15 01:45:46 CEST 2012


On 15/10/2012 1:28 ??, Chavoux Luyt wrote:
> Thanks Mattias
>
> On 14 October 2012 23:04, Mattias Gaertner <nc-gaertnma at netcologne.de 
> <mailto:nc-gaertnma at netcologne.de>> wrote:
>
>     On Sun, 14 Oct 2012 22:44:29 +0200
>     Chavoux Luyt <chavoux at gmail.com <mailto:chavoux at gmail.com>> wrote:
>
>     > Hi guys
>     >
>     > How do I add the nxPascal directory (or other units (.pas
>     files)) to the
>     > Lazarus source directory?
>
> <snip>
>
>     Do you mean to all your projects or really to all projects?
>
> Sorry, I mean available to all my projects.
>
>
>     Recommended way:
>     Create a package, add your shared sources and then add the package to
>     any project that needs the units.
>
> Ahh. I downloaded the nxPascal source files (all .pas units) and I 
> don't think they are currently in a package. The demos that come with 
> it has the .pas files in its uses clause... If I put them all in a 
> package, how do I include the package in the demos (if it is not a 
> visual component)?

You add the package as a dependency on your demo see the menu 
package\package inspector, press the big plus button on the left labeled 
"add" and select the second tab labeled "New Requirement".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121015/cfcb371e/attachment-0003.html>


More information about the Lazarus mailing list