On 15/10/2012 1:28 ??, Chavoux Luyt wrote:
Thanks Mattias
On 14 October 2012 23:04, Mattias Gaertner <[email protected]
<mailto:[email protected]>> wrote:
On Sun, 14 Oct 2012 22:44:29 +0200
Chavoux Luyt <[email protected] <mailto:[email protected]>> 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".
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus