Sign in Join

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

Mailing lists / fpc-pascal / 2000-11

Link Errors on FPC examples.

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Brian & Colleen

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'
/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.

Reply by email

Unknown author
to Brian & Colleen
Brian & Colleen wrote 42 lines
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.

Show quoted text 22 lines
/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 http://mypage.direct.ca/g/greybria

Reply by email

Unknown author

May I also state for the record that I've never been able to get any of the forms examples to compile even though I was using the correct version (I don't remember the version number now, this was awhile ago) After a long frustrating battle with the damn thing I decided to only use GDK.

FPC is still a great compilier though! :)
- Matt

In a message dated Thu, 2 Nov 2000 3:57:53 AM Eastern Standard Time, writes:

<<

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

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.

Show quoted text 9 lines
/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' >

Reply by email