4

I want to know how to add units to lazarus e.g (crt,sysutils) specifically wingraph.I have scoured the internet but I haven't found anything so can anybody enlighten me?

1 Answers1

6

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

Abstract type
  • 1,901
  • 2
  • 15
  • 26