Sign in Join

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

Mailing lists / fpc-devel / 2002-05

Using FPC 1.0.7 with RTL 1.1

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Sergey Korshunoff

Hi!
There is some trouble with SUBJ.
Try to make fpc.pp (in compiler/util/) and then
run
./fpc -iV
I get an 203 error in AnsiString operation.
Can You trace the error?

Regards,
Sergey Korshunoff

Reply by email

Peter Vreman
to Sergey Korshunoff
you wrote 7 lines
Hi! There is some trouble with SUBJ. Try to make fpc.pp (in compiler/util/) and then run ./fpc -iV I get an 203 error in AnsiString operation. Can You trace the error?

I can't reproduce the problem. The 1.1 rtl compiled by 1.0.x is only supported for bootstrapping a new compiler.

Peter

Reply by email

Sergey Korshunoff
to Peter Vreman: I can't reproduce the problem. The 1.1 rtl compiled by 1.0.x is only supported for…
you wrote 11 lines
At 02:29 20-5-02, you wrote: >Hi! There is some trouble with SUBJ. >Try to make fpc.pp (in compiler/util/) and then >run > ./fpc -iV >I get an 203 error in AnsiString operation. >Can You trace the error? I can't reproduce the problem. The 1.1 rtl compiled by 1.0.x is only supported for bootstrapping a new compiler. Peter

I've resolved for itself the problem with SUBJ by replacing in RTL 1.1 astrings.inc a lines

   { old style helper }
  {$ifndef hascompilerproc}
  Procedure fpc_ShortStr_To_AnsiStr (Var S1 : Pointer; Const S2 :  ShortString); [Public, alias: 'FPC_SHORTSTR_TO_ANSISTR'];
  begin
    s1 := pointer(fpc_ShortStr_To_AnsiStr(s2));
  end;
  {$endif hascompilerproc}

with a code from RTL 1.0 But I can not find what is wrong with a RTL 1.1 current code.

Regards,
Sergey Korshunoff

Reply by email

Jonas Maebe
to Sergey Korshunoff
Sergey Korshunoff wrote 15 lines
I've resolved for itself the problem with SUBJ by replacing in RTL 1.1 astrings.inc a lines { old style helper } {$ifndef hascompilerproc} Procedure fpc_ShortStr_To_AnsiStr (Var S1 : Pointer; Const S2 : ShortString); [Public, alias: 'FPC_SHORTSTR_TO_ANSISTR']; begin s1 := pointer(fpc_ShortStr_To_AnsiStr(s2)); end; {$endif hascompilerproc} with a code from RTL 1.0 But I can not find what is wrong with a RTL 1.1 current code.

Strange, I don't see a problem either :/ It could cause problems with the compiler too if we start using ansistrings in it though, so it should be fixed...

Jonas

Reply by email