[fpc-devel]Problem to open an File

Peter Vreman peter at freepascal.org
Tue Sep 3 10:29:43 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

Sorry. include/attach the link.res in the mail







More information about the fpc-devel mailing list