[arch-general] FreePascal doesn't see the module 'graph'

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Sun Feb 26 16:39:05 EST 2012


On 02/26/2012 02:39 PM, Abdourazak Osmanov wrote:
> When I compile this code:
>
> program radar;
>> uses
>>      crt, graph;
>>
>> var
>>      DriverVar, ModeVar : integer;
>>
>> begin
>>          DriverVar := Detect;
>>          ModeVar := 2;
>>          InitGraph(DriverVar, ModeVar,'');
>>          SetColor(4);
>>          LineTo(100,100);
>> end.
>>
> I get an error message:
>
> mao at 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)
>>
> Why is this happening?
>
Because graph does not exist in x86_64. Anyway if you want to use graph 
in i686 you need svgalib (from AUR), and who knows if works in these days...

-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1



More information about the arch-general mailing list