Possible work-around for the calloc vs glibc issue lazarus / 64-FPC development ---------------------------------------------------------------------- Thaddy · 2023-06-09 08:13 Last month Florian asked if there was a work-around for the missing calloc if you dynamically linked your program with a recent version. The linker seems alwas to expect your executables to be linked against glibc otherwise you get a missing calloc error. A possible work-around is maybe to add a calloc function to system ? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function calloc(nitems,nsize:size_t):pointer;inline;cdecl;begin  calloc := allocmem(nitems*nsize);end; It may fool the linker into seeing that one first. I checked it is fully compatible with the glibc function and the pointer can subsequently also be used with other c functions even if you link against glibc.