> 1) Is 'Detect' integer? I can't tell from here. > > 2) Shouldn't InitGraph receive a path? See "PathToDriver" in > http://www.freepascal.org/docs-html/rtl/graph/initgraph.html > No, the reason is different. This code also doesn't work: program radar; > > uses > crt, graph; > > var > DriverVar, ModeVar : integer; > > begin > DriverVar := 0; > ModeVar := 2; > end. > Same error: mao@mao-note-arch Pascal $ fpc radar.pas > Free Pascal Compiler version 2.6.0 [2012/01/02] for x86_64 > Copyright (c) 1993-2011 by Florian Klaempfl and others > Target OS: Linux for x86-64 > Compiling radar.pas > Fatal: Can't find unit graph used by radar > Fatal: Compilation aborted > Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not > specify a source file to be compiled) > Module 'graph' is exist: mao@mao-note-arch Pascal $ pacman -Ql fpc | grep graph > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/Package.fpc > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ggigraph.o > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ggigraph.ppu > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/libpggigraph.a > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/libpptccrt.a > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/libpptcgraph.a > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ptccrt.o > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ptccrt.ppu > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ptcgraph.o > fpc /usr/lib/fpc/2.6.0/units/x86_64-linux/graph/ptcgraph.ppu >