I am trying to access the available heap memory and there is an external function MemAvail - or is it an external integer?
While it is clearly not a Good Thing to use this on a multi-programmed system like Linux, I am building a cross-platform program that will also be run on Windroze. I note that MemAvail and MaxAvail will probably return the same on an MS platform but that's for the future ...
A very simple program like:
program testmem; function MemAvail:integer;external; begin writeln('Memory available is ',MemAvail:16); end.
responds with an undefined reference for Memavail.
What is the idiots way round this?
TIA
John