system: ubuntu 5.10, Anjuta, FPC, все units на месте, НО постоянно вижу эту гадость:
Код
cyxob@saata:~/pas$ fpc gtk.pas
gtk.pas(1,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" found
gtk.pas(2,10) Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
gtk.pas(1,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" found
gtk.pas(2,10) Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
код проги брал в каком то www manual:
Код
Program Example40;
{ Program to demonstrate the GetHostName function. }
Uses linux;
begin
Writeln ('Name of this machine is : ',GetHostName);
end.
{ Program to demonstrate the GetHostName function. }
Uses linux;
begin
Writeln ('Name of this machine is : ',GetHostName);
end.
в чем дело? пол дня потерял
help plz!!!