Sign in Join

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

Mailing lists / fpc-devel / 2004-06

Re: Problem with 1.9.4/Linux

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Marco van de Voort
to Unknown author: After the announcement I downloaded fpc 1.9.4 for Linux. Compiling the following very…
After the announcement I downloaded fpc 1.9.4 for Linux. Compiling the following very simple source I find some problems: First it complains that NameStr, DirStr and ExtStr are unknown types. When I change them to string it complains that FSplit doesn't exist.

The unix rtl has been thoroughly reworked. The identifiers you are refering to are probably in unit unix now.

You shouldn't be using these routines anyway, but use similar routines in sysutils that use ansistring and don't have 255 char limits.

The routines are only in linux because they are needed for legacy unit dos.

Reply by email

Unknown author

Hallo,

After the announcement I downloaded fpc 1.9.4 for Linux. Compiling the following very simple source I find some problems: First it complains that NameStr, DirStr and ExtStr are unknown types. When I change them to string it complains that FSplit doesn't exist.

What's going on?

Groetjes,

Hans.

=== import ===
unit JB_lib;

Interface {----------------------------------------------------------}

uses  Linux;
var   progtag : NameStr;
      progdir : DirStr;

Implementation {-----------------------------------------------------}

var   fextn   : ExtStr;

{Initialisastion ----------------------------------------------------}

begin
   fSplit ( ParamStr(0), progdir, progtag, fextn );
end .
=== tropmi ===

--- GoldED+/LNX 1.1.5cvs031202
* Origin: The Wizard is using MBSE/Linux (2:280/1018)

Reply by email

Unknown author

Hallo,

Op 06 Jun 04 schreef Marco van de Voort aan

> First it complains that NameStr, DirStr and ExtStr are unknown types. > When I change them to string it complains that FSplit doesn't exist.

MvdV> The unix rtl has been thoroughly reworked. The identifiers you are MvdV> refering to are probably in unit unix now.

They seem not to be. Where do I find information about the unix unit anyway? I looked in the Unix, FCL and Reference manuals.

MvdV> You shouldn't be using these routines anyway, but use similar routines MvdV> in sysutils that use ansistring and don't have 255 char limits.

That is a very good suggestion and solved the problem :) But I'm lazy, so when I decided to look at programming in pascal again, I took some old sources and only changed what was really necessary.

MvdV> The routines are only in linux because they are needed for legacy unit MvdV> dos.

The last time I did some serious pascal programming was when Turbo Pascal 6.0 was brand new...

Groetjes,

Hans.

--- GoldED+/LNX 1.1.5cvs031202
* Origin: The Wizard is using MBSE/Linux (2:280/1018)

Reply by email