Sign in Join

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

Mailing lists / fpc-pascal / 2002-12

1.0.6 Compiler Gives Error When Compiling

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Timmer

Hello

I just upgraded to the 1.0.6 compiler and tried to compile a program that was compiling without any problem in the 1.0.4 compiler. When I try to compile now, I get the following message:

Free Pascal Compiler version 1.0.6 [2002/04/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Win32 for i386
Compiling tsuris.pas
Linking tsuris.exe
link.res: file not recognized: File format not recognized tsuris.pas(280,1) Error: Error while linking
Closing script ppas.bat

I don't have a link.res that I've made. It seems that the linker is creating this file for me. I have no idea what's supposed to be in this file. Is something amiss here? Is there something I can do to make this work?

Thanks.

Tim

Reply by email

Marco van de Voort
to Timmer
Show quoted text 16 lines
I just upgraded to the 1.0.6 compiler and tried to compile a program that was compiling without any problem in the 1.0.4 compiler. When I try to compile now, I get the following message: Free Pascal Compiler version 1.0.6 [2002/04/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Win32 for i386 Compiling tsuris.pas Linking tsuris.exe link.res: file not recognized: File format not recognized tsuris.pas(280,1) Error: Error while linking Closing script ppas.bat I don't have a link.res that I've made. It seems that the linker is creating this file for me. I have no idea what's supposed to be in this file. Is something amiss here? Is there something I can do to make this work?

Probably you have a package with some of the same binaries like FPC (probably cygwin/djgpp/mingw) in your path before FPC. Iow takes a wrong linker or other tool from a non FPC package.

Reply by email

Timmer
Probably you have a package with some of the same binaries like FPC (probably cygwin/djgpp/mingw) in your path before FPC. Iow takes a wrong linker or other tool from a non FPC package.

Nope.

This is the only compiler/linker type thing installed on a brandy-new Windows XP system.

Tim

Reply by email

Peter Vreman
to Timmer
Show quoted text 9 lines
> Probably you have a package with some of the same binaries like FPC > (probably cygwin/djgpp/mingw) in your path before FPC. Iow takes a wrong > linker or other tool from a non FPC package. Nope. This is the only compiler/linker type thing installed on a brandy-new Windows XP system.

Is fpc installed in a directory with spaces in the name? Please provide the generated link.res file

Reply by email

Timmer
Is fpc installed in a directory with spaces in the name? Please provide the generated link.res file

FPC is in Z:\private\FPC\

Here is link.res:

-=-=-=-=-= LINK.RES =-=-=-=-=-
SEARCH_DIR(z:\private\tsuris\common\)
SEARCH_DIR(z:\private\fpc\units\win32\rtl\)
SEARCH_DIR(z:\private\fpc\units\win32\zlib\)
SEARCH_DIR(z:\private\fpc\units\win32\uncgi\)
SEARCH_DIR(z:\private\fpc\units\win32\unzip\)
SEARCH_DIR(z:\private\fpc\units\win32\regexpr\)
SEARCH_DIR(z:\private\fpc\units\win32\paszlib\)
SEARCH_DIR(z:\private\fpc\units\win32\gdbint\)
SEARCH_DIR(z:\private\fpc\units\win32\mmsystem\)
SEARCH_DIR(z:\private\fpc\units\win32\mysql\)
SEARCH_DIR(z:\private\fpc\units\win32\ibase\)
SEARCH_DIR(z:\private\fpc\units\win32\inet\)
SEARCH_DIR(z:\private\fpc\units\win32\gtk\)
SEARCH_DIR(z:\private\fpc\units\win32\opengl\)
SEARCH_DIR(z:\private\fpc\units\win32\fcl\)
SEARCH_DIR(z:\private\fpc\units\win32\)
SEARCH_DIR(z:\private\fpc\bin\win32\)
INPUT(
z:\private\fpc\units\win32\rtl\wprt0.ow
tsuris.owr
)
GROUP(

z:\private\fpc\units\win32\rtl\LIBPT~YB.AW
z:\private\fpc\units\win32\rtl\LIBPW~JH.AW
z:\private\fpc\units\win32\rtl\LIBPS~GM.AW
z:\private\fpc\units\win32\rtl\libpdos.aw
z:\private\fpc\units\win32\rtl\LIBPS~I#.AW
z:\private\fpc\units\win32\fcl\LIBPC~IE.AW
z:\private\fpc\units\win32\rtl\LIBPO~14.AW
z:\private\fpc\units\win32\rtl\LIBPS~UD.AW
LIBPT~BO.AW
)
-=-=-=-=-= LINK.RES =-=-=-=-=-

Tim

Reply by email

Peter Vreman
to Timmer
you wrote 31 lines
> Is fpc installed in a directory with spaces in the name? Please provide the > generated link.res file FPC is in Z:\private\FPC\ Here is link.res: -=-=-=-=-= LINK.RES =-=-=-=-=- SEARCH_DIR(z:\private\tsuris\common\) SEARCH_DIR(z:\private\fpc\units\win32\rtl\) SEARCH_DIR(z:\private\fpc\units\win32\zlib\) SEARCH_DIR(z:\private\fpc\units\win32\uncgi\) SEARCH_DIR(z:\private\fpc\units\win32\unzip\) SEARCH_DIR(z:\private\fpc\units\win32\regexpr\) SEARCH_DIR(z:\private\fpc\units\win32\paszlib\) SEARCH_DIR(z:\private\fpc\units\win32\gdbint\) SEARCH_DIR(z:\private\fpc\units\win32\mmsystem\) SEARCH_DIR(z:\private\fpc\units\win32\mysql\) SEARCH_DIR(z:\private\fpc\units\win32\ibase\) SEARCH_DIR(z:\private\fpc\units\win32\inet\) SEARCH_DIR(z:\private\fpc\units\win32\gtk\) SEARCH_DIR(z:\private\fpc\units\win32\opengl\) SEARCH_DIR(z:\private\fpc\units\win32\fcl\) SEARCH_DIR(z:\private\fpc\units\win32\) SEARCH_DIR(z:\private\fpc\bin\win32\) INPUT( z:\private\fpc\units\win32\rtl\wprt0.ow tsuris.owr ) GROUP(

I guess it's this line that is causing the problem. Try renaming the unit name.

Peter

Reply by email