hi,
I have a project developed on window10 lazarus 2.2.0 which works fine. When I copy the source code and compile it on my target os armv7l-linux4.4.83-ubuntu18 with FPC 3.3.2 everything is ok, it works as expected.
Then I import a required package "dcpcrypt", of which function TDCP_rc4.DecryptString is used. It also works well on win10. Then I copy it to my target os with related files dcpbase64.pas, dcpconst.pas, dcpcrypt2.pas, dcprc4.pas and dcpsha1.pas.
when I comple the project, I get this:
root@sunny:/home/senglit# fpc mytarget.pp
Compiling mytarget.pp
Compiling module1.pas
...
......
Compiling dcprc4.pas
Compiling dcpcrypt2.pas
Compiling dcpbase64.pas
dcpbase64.pas(81,3) Error: Identifier not found "Result"
dcpbase64.pas(86,13) Error: Identifier not found "Result"
dcpbase64.pas(87,27) Error: Identifier not found "Result"
dcpbase64.pas(98,3) Error: Identifier not found "Result"
dcpbase64.pas(114,5) Error: Identifier not found "Result"
dcpbase64.pas(118,7) Error: Identifier not found "Result"
dcpbase64.pas(125,7) Error: Identifier not found "Result"
dcpbase64.pas(134,13) Error: Identifier not found "Result"
dcpbase64.pas(135,13) Error: Identifier not found "Result"
dcpbase64.pas(135,44) Error: Identifier not found "Result"
dcpbase64.pas(140) Fatal: There were 10 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode
What's wrong? the "Result" is the return value of a function, how can it be wrong?