[fpc-pascal]Link Errors on FPC examples.

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Thu Nov 2 09:51:25 CET 2000


On Wed, 1 Nov 2000, Brian & Colleen wrote:

> After having set up /etc/ppc386.cfg to look like this:
> -----------------------------------------
> # Set Filenames and Paths
> # -----------------------
> 
> # Slashes are also allowed under dos
> 
> # path to the messagefile, not necessary anymore but can be used to
> override
> # the default language
> #-Fr/usr/lib/fpc/1.0.2/msg/errore.msg
> #-Fr/usr/lib/fpc/1.0.2/msg/errorn.msg
> 
> # searchpath for includefiles
> #-Fi/pp/inc;/pp/rtl/inc
> 
> # searchpath for units and other system dependent things
> -Fu/usr/lib/fpc/1.0.2/units/$target
> -Fu/usr/lib/fpc/1.0.2/units/$target/*
> -Fu/usr/lib/fpc/1.0.2/units/$target/rtl
> #-Fu~/fpc/packages/*;~/fpc/rtl/linux
> 
> # searchpath for libraries
> -Fl/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3;/usr/lib;/usr/lib/fpc/1.0.2/units/linux
> 
> #-Fl//usr/lib
> #-Fl/lib;/usr/lib
> ----------------------------------------------
> I'm getting way to many link errors that look like this:
> 
> ppc386 -Fu/usr/lib/fpc/1.0.2/units/linux/rtl
> -Fu/usr/lib/fpc/1.0.2/units/linux -Fl/usr/lib -Fl/usr/X11R6/lib
> -Fl/usr/i486-linux-libc5/lib -di386 objreturn.pp
> Free Pascal Compiler version 1.0.2 [2000/10/12] for i386
> Copyright (c) 1993-2000 by Florian Klaempfl
> Target OS: Linux for i386
> Compiling objreturn.pp
> Assembling objreturn
> Linking objreturn
> /usr/lib/fpc/1.0.2/units/linux/forms.o: In function
> `_FORMS$$_FL_SET_BUTTON_SHORTCUT$PFL_OBJECT$PCHAR$LONGINT':
> /usr/lib/fpc/1.0.2/units/linux/forms.o(.text+0xd): undefined reference to `fl_set_object_shortcut'

It seems to me that you have a version conflict.

What version of the forms library do you have, and what version of
the unit are you compiling ?

Michael.

> /usr/lib/fpc/1.0.2/units/linux/forms.o: In function
> `_FORMS$$_FL_SET_PIXMAPBUTTON_DATA$PFL_OBJECT$PPCHAR':
> /usr/lib/fpc/1.0.2/units/linux/forms.o(.text+0x2a): undefined reference
> to `fl_set_pixmap_data'
> /usr/lib/fpc/1.0.2/units/linux/forms.o: In function
> `_FORMS$$_FL_SET_PIXMAPBUTTON_FILE$PFL_OBJECT$PCHAR':
> /usr/lib/fpc/1.0.2/units/linux/forms.o(.text+0x4a): undefined reference
> to `fl_set_pixmap_file'
> 
> What specific libraries/units should I be setting up to be looked at so
> the examples will link. So far I've been totally unsuccessful. My
> background is TP6/Delphi 3 where everything was in the Unit files.
> 
> I'd love to be working in Pascal again. Thanks.
> 
> --
>  Brian Smith
>  greybria at direct.ca
>  http://mypage.direct.ca/g/greybria
> 
> 
> 





More information about the fpc-pascal mailing list