Sign in Join

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

Mailing lists / fpc-devel / 2001-06

last message for today - compile successful but

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Unknown author

(What I've done is copy the .o files required in pp2\bin\go32v2 folder. But I want to know how to create them.)

I am able to compile some files but not this one:

programa prueba2;
var
i : entero;
inicio
i:=1;
  Para i := 1 hasta 12 haz
    inicio
    escribe('hola');
    fin;
fin.

Errors are:
D:\bailalo\S6\PP2\BIN\GO32V2>pp -Fu..\..\source\rtl\go32v2\ -Fi..\..\source\rtl inc -Fi..\..\source\rtl\i386 -di386 -vo -Sg pru2.pas pru2.pas(5,5) Error: Identifier not found ENTERO
pru2.pas(5,11) Error: Error in type definition
pru2.pas(10,4) Error: Incompatible types: got "ENTLARGO" expected "<erroneous t pe>"
pru2.pas(12,13) Error: Incompatible types: got "ENTLARGO" expected "<erroneous ype>"
pru2.pas(18) Fatal: There were 4 errors compiling module, stopping

The fact is that I've changed Integer for Entero and SmallInt for Entpequeno in SYSTEMH.INC (From the new RTL, the one it is in pp2) and... nothing happens. It doesn't understand entero.

I've searched PP\SOURCE\COMPILER and there's neither file with 'integer' in it, nor file with 'integer' is found in PP2\source\rtl.

But if change entero and I write integer. IT WORKS. I find it quite magical. There's something that it isn't very well.

I hope this is the last message for today.

Thanks again,
adrian15.

---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/

Reply by email

Jonas Maebe
to Unknown author
(What I've done is copy the .o files required in pp2\bin\go32v2 folder. But I want to know how to create them.)

The .o files only contain the machine code, not the type/function/procedure/constant/variable declarations. So it's logical that your new type names aren't recognized if you don't replace the ppu files as well.

Jonas

Reply by email