I am using gpc version 20001122 under Linux and want to call GetUnixTime and GetCPUTime. These functions are mentioned under Run Time System and appear in gpc.pas, but the compiler does not recognize them. I can use GetTimeStamp, but I would like to use the others.
What do I do wrong? I have no special options selected.
Example:
program TimeTest;
begin writeln('Test for date/time functions') ; writeln(GetUnixTime(null)) ; writeln(GetCPUTime(null)) end.
$ gpc -o time-test time-test.p time-test.p: In function `pascal_main_program': time-test.p:5: undeclared identifier `Getunixtime' (first use in this routine) time-test.p:5: (Each undeclared identifier is reported only once time-test.p:5: for each routine it appears in.) time-test.p:6: undeclared identifier `Getcputime' (first use in this routine)
Thanks,
Tom Verhoeff