Код:
program main;
uses Crt, Graph;
var driver,mode:integer;
begin
driver:=detect;
initgraph (driver, mode,'');
if graphresult <>0
then
begin
writeln ('XXX');
halt
end
end.
Информация при компиляции:
Код:
cd '/home/jasha/1/graph_test_2/src' && fpc -vr graph_test_2.pp
Free Pascal Compiler version 2.0.0 [2005/09/09] for i386
Copyright © 1993-2005 by Florian Klaempfl
Target OS: Linux for i386
Compiling graph_test_2.pp
Linking graph_test_2
/usr/bin/ld: cannot find -lvga
graph_test_2.pp:14: error: 1: Error while linking
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specifiy a source file to be compiled)
*** Exited with status: 1 ***
Среда разработки: KDevelop 3.3.5+FreePascal.
Вопрос – как “заставить” работать графический режим?