[fpc-devel]Problem to open an File

Armin Rohnen Armin.Rohnen at bmw.de
Tue Sep 3 10:19:00 CEST 2002


> > I Have write the function (using ppc386 on WIN2000 System):
> >
> > function GetMessData: integer;
> > type
> >   pak = record
> >       werte : String[23];
> >   end;
> >
> >   PakFile = file of pak;
> >
> > var
> >    i : integer;
> >    F : PakFile;
> >
> > begin
> >
> >   Assign(F,'C:\Temp\amag.txt');
> >   Reset(F);
> >
> >
> > end;
> >
> > In the moment, there are not more line in the code of this function.
> > compiling is ok.
> > but the linker send the error:
> > -:link.res: file format not recognized; treating as linker script
> > -:link.res:1: parse error
> > unwucht.pp(165,1) ERROR: ERROR while linking
> > Closing script ppas.bat
> 
> Please include the link.res also
> 
The line

{$I LINK.RES} dosnt work

link.res(1,1) Fatal: Syntax error, BEGIN expected but identifier
SEARCH_DIR found




More information about the fpc-devel mailing list