Xor-el / CryptoLib4Pascal

Crypto for Modern Object Pascal
MIT License
213 stars 65 forks source link

Compilation error in Lazarus #5

Closed alexsaunin closed 6 years ago

alexsaunin commented 6 years ago

When i try to add the Package in Lazarus i get compilation Error "clpcryptolibtypes.pas(74,70) Error: Message recordind not yet supported"

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Package->Open package file (*.lpk)'
  2. Select 'CryptoLib4PascalPackage.lpk'
  3. Click 'Compile'
  4. See error

Screenshots

cryptoliberror

Environment (please complete the following information):

Additional context same error in IDE and wheh i compile from command line

Xor-el commented 6 years ago

Hi, first of all, thanks for the well laid out issue. 👍

this is a common error in FPC that tends to occur randomly for different people (you can google it) without any small reproducable testcase. it has something to do with globally disabling warnings with the {$WARN XXXX} syntax in .inc files. well, you can circumvent this issue by commenting out line 18 in CryptoLib.inc. CryptoLib.inc

Xor-el commented 6 years ago

could you please test the latest commit and check if that fixes your issue?

alexsaunin commented 6 years ago

Yes. These changes fixed the issue.

Xor-el commented 6 years ago

fixed via https://github.com/Xor-el/CryptoLib4Pascal/commit/d0b1bbd2c71b8ad1e7534eaf05fb14ba226e81dd