Lazarus How to insert item in Dynamic array on Ubuntu lazarus / 32-Linux ---------------------------------------------------------------------- RedCat · 2022-02-28 14:11 I'm trying to insert an element into a dynamic array using the insert procedure, on Windows everything compiles and works fine, on Linux (ubuntu) an error occurs when compiling QuoteError: Call by var for arg no. 2 has to match exactly: Got "{Dynamic} Array Of CatYAMLObject" expected "UnicodeString"did I forget any dependencies? Lazarus 2.0.6 from the Ubuntu 20.04 repositories ---------------------------------------------------------------------- Zvoni · 2022-02-28 14:26 Quote from: RedCat on February 28, 2022, 03:11:13 pmI'm trying to insert an element into a dynamic array using the insert procedure, on Windows everything compiles and works fine, on Linux (ubuntu) an error occurs when compiling QuoteError: Call by var for arg no. 2 has to match exactly: Got "{Dynamic} Array Of CatYAMLObject" expected "UnicodeString"did I forget any dependencies? Lazarus 2.0.6 from the Ubuntu 20.04 repositories No, you forgot to mention which Procedure you are calling.... ---------------------------------------------------------------------- RedCat · 2022-02-28 14:32 Quote from: Zvoni on February 28, 2022, 03:26:06 pmQuote from: RedCat on February 28, 2022, 03:11:13 pmI'm trying to insert an element into a dynamic array using the insert procedure, on Windows everything compiles and works fine, on Linux (ubuntu) an error occurs when compiling QuoteError: Call by var for arg no. 2 has to match exactly: Got "{Dynamic} Array Of CatYAMLObject" expected "UnicodeString"did I forget any dependencies? Lazarus 2.0.6 from the Ubuntu 20.04 repositories No, you forgot to mention which Procedure you are calling.... Oh... I'm sorry Insert, Delete ---------------------------------------------------------------------- avk · 2022-02-28 14:41 IIRC, support for the Insert(Delete) intrinsic for dynamic arrays has existed since FPC-3.2.0. ---------------------------------------------------------------------- RedCat · 2022-02-28 14:49 So I have to build FPC 3.2.0 from source? Or are there already built packages for x86-64 Linux? Thanks for the replies... ---------------------------------------------------------------------- Zvoni · 2022-02-28 14:55 Quote from: RedCat on February 28, 2022, 03:11:13 pm Lazarus 2.0.6 from the Ubuntu 20.04 repositories That's the other "mistake": Don't use FPC/Lazarus from Repos Download the deb's from https://sourceforge.net/projects/lazarus/files/ ---------------------------------------------------------------------- rvk · 2022-02-28 14:59 Quote from: RedCat on February 28, 2022, 03:49:45 pmSo I have to build FPC 3.2.0 from source? Or are there already built packages for x86-64 Linux? Thanks for the replies... Isn't there a download on the main page? To which download points the default download for you on https://www.lazarus-ide.org/ ? Otherwise you can click "Other". All the versions are there. ---------------------------------------------------------------------- RedCat · 2022-02-28 16:23 Thank's for all so much