Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-08

old code with readdir

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

mondrillo

Error: Identifier not found "opendir"

Hello list,

I have old code from freepascal older than 2.0.0, and I want to migrate to amd64 debian, but have this error, I have read in googlin about this problem but the possible solutions, use oldlinux ( not avaliable with this version o freepascal) or baseunix this resolv some of problems but : Identifier not found "pdir"
Error: Error in type definition
Error: Identifier not found "pdirent"
Error: Error in type definition
(this resolved with baseunix unit)
Error: Identifier not found "opendir"
Error: Operator is not overloaded

Thank's and regards

Reply by email

Marco van de Voort
to mondrillo
Show quoted text 12 lines
I have old code from freepascal older than 2.0.0, and I want to migrate to amd64 debian, but have this error, I have read in googlin about this problem but the possible solutions, use oldlinux ( not avaliable with this version o freepascal) or baseunix this resolv some of problems but not at all. Error: Identifier not found "pdir" Error: Error in type definition Error: Identifier not found "pdirent" Error: Error in type definition (this resolved with baseunix unit) Error: Identifier not found "opendir" Error: Operator is not overloaded

These have been changed to become more POSIX compliant. To make a clear break they have been prefixed with fp*

See basenix.fpreaddir etc in the help.

Note that it is nearly always better to use the highlevel Pascal equivalents findfirst/findnext.

Reply by email

Jeff Pohlmeyer
Show quoted text 6 lines
> Error: Identifier not found "opendir" See baseunix.fpreaddir etc in the help. Note that it is nearly always better to use the highlevel Pascal equivalents findfirst/findnext.

Just be careful calling FindNext recursively on Linux, things can go haywire if you hit a symlink to '.' or similar.

- Jeff

Reply by email