Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Marco van de Voort
 I've got some funny problem here. The program compiled well with fpc up
 to version 1.9.4. I haven't touched it for a while and now it fails with
 fpc 2.0.2.

Afaik there was only a *nix implementation and that was already covered by
the Unix (fp)time function, so it got cleaned up in 2.0 in the cleanup's
after the implementation of the Exec* functions.

 
 I'm stuck, what is missing here or how can I go on debugging the
 problem?

Nothing, just use fptime.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Micha Nelissen
Marc Santhoff wrote:
 Hi,
 
 I've got some funny problem here. The program compiled well with fpc up
 to version 1.9.4. I haven't touched it for a while and now it fails with
 fpc 2.0.2.
 
 CommonTypes.pp(207,21) Error: Identifier not found GetEpochTime

http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html

Micha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Marco van de Voort
  fpc 2.0.2.
  
  CommonTypes.pp(207,21) Error: Identifier not found GetEpochTime
 
 http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html

He uses FreeBSD.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Michael Van Canneyt


On Sat, 9 Dec 2006, Marc Santhoff wrote:

 Hi,
 
 I've got some funny problem here. The program compiled well with fpc up
 to version 1.9.4. I haven't touched it for a while and now it fails with
 fpc 2.0.2.
 
 The source snippet in queston is:
 
 function TStorable.generateID: integer;
 begin
 //writeln(GetEpochTime); does not work anymore
 result := sysutils.GetEpochTime(); // does not work either
 //result := fpTime; // this works!
 end;
 
 As you can see I've tried prefixing with the correct unit specifier but
 it fails:
 
 CommonTypes.pp(207,21) Error: Identifier not found GetEpochTime
 
 Checking the source and even grep'ping and strings'ing sysutils.ppu and
 sysutils.o the function GetEpochTime is there:
 
 $ grep GetEpochTime 
 /home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu
 Binary file 
 /home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu matches
 
 But the compiler doesn't find it:
 
 from fpc ... -vt
 ...
 PPU Loading 
 /home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu
 ...
 
 I'm stuck, what is missing here or how can I go on debugging the
 problem?

Nothing is missing. getepochtime is present in the Sysutils unit, but is not 
exposed,
as it's not cross platform. You should be using fptime.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Micha Nelissen
Marco van de Voort wrote:
 fpc 2.0.2.

 CommonTypes.pp(207,21) Error: Identifier not found GetEpochTime
 http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html
 
 He uses FreeBSD.

Ah right, this was apparent from the unit path.

Micha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Marco van de Voort
 Marco van de Voort wrote:
  fpc 2.0.2.
 
  CommonTypes.pp(207,21) Error: Identifier not found GetEpochTime
  http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html
  
  He uses FreeBSD.
 
 Ah right, this was apparent from the unit path.

Not that I'd recommend oldlinux to linux/x86 users though. It was really only
meant to recompile unmaintained old stuff for the 1-2 transition.

IMHO we can disable it for 2.2 too.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Marc Santhoff
Am Samstag, den 09.12.2006, 10:01 +0100 schrieb Michael Van Canneyt:

  I'm stuck, what is missing here or how can I go on debugging the
  problem?
 
 Nothing is missing. getepochtime is present in the Sysutils unit, but is not 
 exposed,
 as it's not cross platform. You should be using fptime.

Far more simple than I thought, I had started fiddling paths and the
like ... :)

Thanks for all helping hands,
Marc


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] GetEpochTime not found

2006-12-08 Thread Marc Santhoff
Hi,

I've got some funny problem here. The program compiled well with fpc up
to version 1.9.4. I haven't touched it for a while and now it fails with
fpc 2.0.2.

The source snippet in queston is:

function TStorable.generateID: integer;
begin
//writeln(GetEpochTime); does not work anymore
result := sysutils.GetEpochTime(); // does not work either
//result := fpTime; // this works!
end;

As you can see I've tried prefixing with the correct unit specifier but
it fails:

CommonTypes.pp(207,21) Error: Identifier not found GetEpochTime

Checking the source and even grep'ping and strings'ing sysutils.ppu and
sysutils.o the function GetEpochTime is there:

$ grep GetEpochTime 
/home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu
Binary file 
/home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu matches

But the compiler doesn't find it:

from fpc ... -vt
...
PPU Loading 
/home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu
...

I'm stuck, what is missing here or how can I go on debugging the
problem?

TIA,
Marc


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal