On Sun, 14 Oct 2012 22:44:29 +0200 Chavoux Luyt <[email protected]> wrote:
> Hi guys > > How do I add the nxPascal directory (or other units (.pas files)) to the > Lazarus source directory? I assumed that I had to add it to > Tools->Options->Environment->Files->FPC Source Directory (or should it be > added to the Lazarus directory instead?), but then it replaces the > "/usr/share/fpcsrc/$(FPCVER)/" directory instead of adding nxPascal to the > source path? The help file doesn't really say much more. I remember that I > could add a project specific source path as well as an environment-wide > source path in Delphi. In this case I want the nxPascal units to be > available to all projects. Do you mean to all your projects or really to all projects? Recommended way: Create a package, add your shared sources and then add the package to any project that needs the units. Another way, but can create conflicts: Add the -Fu parameter to your /etc/fpc.cfg. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
