Код:
unit trigonometria;
interface
uses Crt;
function ctg:real;
function tg:real;
implementation
function ctg(a,b:real):real;
begin
ctg := cos(a) / sin(b)
end;
function tg(a,b:real):real;
begin
tg := sin(a) / cos(b)
end;
begin
clrscr
end.
ответ компилятора:
Код:
cd '/home/jasha/1/unit/src' && fpc -vr unit.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 unit.pp
unit.pp:1: error: 6: Illegal unit name: trigonometria
unit.pp:8: error: 1: There were 1 errors compiling module, stopping
unit.pp:8: error: 1: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specifiy a source file to be compiled)
*** Exited with status: 1 ***
я уж всякие имена перепробывал...