[fpc-devel]Problem to open an File

Pavel V. Ozerski pavel at insect.mail.iephb.ru
Tue Sep 3 14:28:13 CEST 2002


Hello Armin,

Tuesday, September 03, 2002, 9:59:21 AM, you wrote:

AR> I Have write the function (using ppc386 on WIN2000 System):

AR> function GetMessData: integer;
AR> type
AR>    pak = record
AR>        werte : String[23];
AR>    end;

AR>    PakFile = file of pak;

AR>  var
AR>    i : integer;
AR>    F : PakFile;

AR>  begin

AR>   Assign(F,'C:\Temp\amag.txt');
AR>   Reset(F);


AR>  end;

AR>  In the moment, there are not more line in the code of this function.
AR>  compiling is ok.
AR>  but the linker send the error:
AR>  -:link.res: file format not recognized; treating as linker script
AR>  -:link.res:1: parse error
AR>  unwucht.pp(165,1) ERROR: ERROR while linking
AR>  Closing script ppas.bat

AR>  Please include the link.res also

AR> --------------

AR> here link.res

AR> SEARCH_DIR(g:\pc\pp\unwucht\VERSI~L!\)
AR> SEARCH_DIR(g:\pc\pp\units\win32\)
AR> SEARCH_DIR(g:\pc\pp\units\win32\rtl\)
AR> INPUT(
AR> g:\pc\pp\units\win32\rtl\wprt0.ow
AR> g:\pc\pp\unwucht\VERSI~L!\unwucht.ow
AR> )
AR> GROUP(
AR> g:\pc\pp\units\win32\rtl\libpdos.aw
AR> g:\pc\pp\units\win32\rtl\LIBPW~JH.AW
AR> g:\pc\pp\units\win32\rtl\LIBPS~GM.AW
AR> g:\pc\pp\units\win32\rtl\LIBPO~14.AW
AR> g:\pc\pp\units\win32\rtl\LIBPS~UD.AW
AR> )

Are you sure that your linker is ldw for Win32?
ld's for different targets can have different script formats. 1) Try
to compile and link separately (read -s compiler switch
documentation); 2) Check targets supported by linker.



-- 
Best regards,
 Pavel                            mailto:pavel at insect.mail.iephb.ru







More information about the fpc-devel mailing list