Package: fp-compiler Version: 1.9.4-5 System: Debian GNU/Linux 3.1 Kernel: 2.4.28 libc6: 2.3.2.ds1-22
When compiling a Pascal program that includes the Getenv or Shell functions [ppc386 mp3spieler_cp] i get: mp3spieler_cp.pas(11,11) Error: Identifier not found "Getenv" mp3spieler_cp.pas(15,46) Error: Identifier not found "Shell" Program will not be compiled. Workaround:installing fp-compiler along with fp-units-rtl version 1.0.4-2 -------------------------------------------------------------------------------- Program mp3spieler_cp;{ 1.11.2004 } Uses linux;{für SHELL und Getenv cmd } var PL:text; Liedname:string[255]; f:integer; host,username:string[20]; Label ende; BEGIN username:=Getenv('LOGNAME'); writeln('*** Überspielen Lieder aus Playliste pl auf Mp3 Spieler ***'); assign(pl,'/home/'+username+'/TON/pl');{$I-}reset(pl);{$i+} f:=ioresult;if f<>0 then begin writeln('Eingabedatei Fehler Rc(',f,')');goto ende;end; write(' mögliche Rechnernamen sind: ');f:=Shell('cat /etc/hosts'); . . .