pascallazarus

Adding units to Lazarus


How can I add units to Lazarus, e.g. (crt,sysutils), specifically wingraph?


Solution

  • In the project setting you have to specify the location of the unit you want to use (Menu Project, Project options, Compiler options, Paths and finally Other units files)

    enter image description here

    You can add absolute or relative paths. Relative paths uses the project file (the *. lpr) directory as base directory.

    Some macros also exist, as shown in the screenshot (e.g $(PathMacro)). Read more here