Using graph unit lazarus / 3-General ---------------------------------------------------------------------- p.barton@twgs.qld.edu.au · 2012-08-27 23:27 Hi, Trying to get Lazarus to run the "graph" unit in Pascal - uses graph; Works just fine when installed on my laptop but when installing onto our school network get this message: C:\Users\bartp\AppData\Local\Temp\project1.lpr(1,1) Fatal: Can't find unit Graph used by UsingGraphics I'm guessing it is something to do with the path of the graph unit.  Any suggestions? Sample code I'm running to check if graphics will work below: Program UsingGraphics; Uses Crt,Graph; Var GraphicsDriver, GraphicsMode:smallint; procedure OpenGraphics; Begin  Writeln('Graphics Initialised.');  GraphicsDriver := Detect;  InitGraph(GraphicsDriver, GraphicsMode,''); end; procedure CloseGraphics; begin      CloseGraph;      Writeln('Graphics Closed.'); End; procedure DrawCircle; begin      circle(320,240,100); end; {MISSION CONTROL} begin      OpenGraphics;      repeat    DrawCircle      until keypressed;      CloseGraphics;      readln; end. ---------------------------------------------------------------------- Blaazen · 2012-08-27 23:48 There were some discussions about this unit, I don't if it is somewhere in FPC sources. Try unit "ptcgraph" instead. ---------------------------------------------------------------------- p.barton@twgs.qld.edu.au · 2012-08-27 23:57 No good, thanks for your suggestion. ---------------------------------------------------------------------- Avishai · 2012-08-28 00:00 On my system it is at C:\Lazarus\Fpc\2.6.1\Source\Packages\Graph\Src\Win32 But it depends on the OS.  Check in C:\Lazarus\Fpc\2.6.1\Source\Packages\Graph\Src for your OS. ---------------------------------------------------------------------- p.barton@twgs.qld.edu.au · 2012-08-28 00:08 Thanks for your help.  Have it working fine on my laptop but when I try to run using machines on our school network it can't find the graph.pp file.  I have tried adding the path in the InitGraph section but without success. Will keep trying. Thanks. ---------------------------------------------------------------------- Avishai · 2012-08-28 00:16 If you Open the Project Inspector from  Menu "Project/Project Inspector" click on the "Add" button, it will add it to the Path. Edit: Then go to "Project/Project Options" and check the box for "Use these compiler Options as Default for new projects". ---------------------------------------------------------------------- marcov · 2012-08-28 08:17 Windows is a special case, it is called "wingraph" there, just like in Windows versions of Turbo Pascal. The "win" alludes to the integration with Windows GDI system. See the games in the FPC demos/examples (fpctris/samegame) for examples of graph. I don't know if Lazarus packages those though.