Al-Muhandis / fp-telegram

Telegram bots in Lazarus (and FreePascal)
MIT License
77 stars 16 forks source link

Identifier not found "TRawByteStringStream" #7

Open migmam opened 2 years ago

migmam commented 2 years ago

Hi!

I'm getting the following error when compiling "Identifier not found "TRawByteStringStream"

Al-Muhandis commented 2 years ago

Hi! Which version of FreePascal are you using? This type exists in standard rtl in FreePascal. Weird

migmam commented 2 years ago

This is the version I'm using: Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29] for x86_64

Al-Muhandis commented 2 years ago

Is there any valid reason why you are using an outdated version of FPC? Current stable FPC is 3.2.2.

Of course, I can try to add some hack to the code for backward compatibility of older versions of FPC. But You'll have to wait until I get home few days

migmam commented 2 years ago

Well, it's the version that is coming in my linux ubuntu (18.04). Knowing that it is just a problem of fpc version I will try to install a more updated version, no need backward compatibily. Thanks for your support!

migmam commented 2 years ago

Wow. I can see there is no office package for debian/ubuntu for the version you told me:

https://www.freepascal.org/down/i386/linux-hungary.html#linuxdeb

Al-Muhandis commented 2 years ago

I'll think about a hack for backward compatibility. As for getting a more recent version of FPC, and generally a convenient installation, I recommend using fpcupdeluxe to install Lazarus

Al-Muhandis commented 2 years ago

So, I added defines for the outdated FPC to work. Try it now https://github.com/Al-Muhandis/fp-telegram/tree/deprecated-fpc. Message here if it helped, I will apply the changes to the main branch as well

migmam commented 2 years ago

Great!! It works like a charm! Thanks!!!

Al-Muhandis commented 2 years ago

So, then I will add to the main branch

Al-Muhandis commented 2 years ago

8