i am working on some different pascal coding for sftp (i would like a cli sftp like the c one that comes in
i am having trouble seeing the error in a try/except code
i am on linux with fpc-3.3.1
i downloaded
https://www.syncovery.com/release/tgputtylib-build30.zip unzipped it to tgputty.release dir
cd tgputty.release/FPCSimpleDemos
fpc fpcsftpclasstest.lpr
with output
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Target OS: Linux for x86-64
Compiling fpcsftpclasstest.lpr
fpcsftpclasstest.lpr(3,2) Warning: APPTYPE is not supported by the target OS i commented this line with no effect
Compiling ../tgputtylib.pas
tgputtylib.pas(500,12) Hint: Conversion between ordinals and pointers is not portable
tgputtylib.pas(591,5) Error: Illegal expression
tgputtylib.pas(592,7) Fatal: Syntax error, ";" expected but "identifier ON" found
Fatal: Compilation aborted
../tgputtylib.pas
TGPuttyLibLoadError:='dlopen failed, errno='+IntToStr(errno);
end;
{$endif}
except <- line 591
on E:Exception do begin
Result:=false;
TGPuttyLibLoadError:=E.Message;
end;
end;
end;