Sign in Join

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

Mailing lists / fpc-pascal / 2000-10

fpc-1.0.2/examples/forms : compiling error

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

NDQ

Hi,
I try compile example "menu.pp" in "fpc-1.0.2/examples/forms" (Linux). Unfortunatly, I have error following :
------------------------------------------------------------ [quy] /tmp/forms$ ppc386 menu.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 menu.pp
Assembling menudemo
Linking menu
/usr/X11R6/lib//libforms.a(pixmap.o): In function `cleanup_xpma_struct': pixmap.o(.text+0x27): undefined reference to `XpmLibraryVersion' pixmap.o(.text+0xc8): undefined reference to `XpmFreeAttributes' /usr/X11R6/lib//libforms.a(pixmap.o): In function `fl_create_from_pixmapdata': pixmap.o(.text+0x57f): undefined reference to `XpmAttributesSize' pixmap.o(.text+0x5b5): undefined reference to `XpmCreatePixmapFromData' /usr/X11R6/lib//libforms.a(pixmap.o): In function `fl_read_pixmapfile': pixmap.o(.text+0x843): undefined reference to `XpmAttributesSize' pixmap.o(.text+0x879): undefined reference to `XpmReadFileToPixmap' menu.pp(122) Warning: Error while linking
Closing script ppas.sh
121 Lines compiled, 1.7 sec
------------------------------------------------------------- Would you tell me how to create popup et pulldown menus with fpc ?(console and X) Any DOC I could found for this ?
I'm under Linux RH6.1+ fpc-1.0.2 [2000/10/12]

Thanks in advance,

NGUYEN-DAI Quy Rue des Champs 84, B4020, Liège, Belgique Tél:+32-4-349.15.29 http://iris.ltas.ulg.ac.be

Reply by email

Unknown author
to NDQ
NDQ wrote 20 lines
Hi, I try compile example "menu.pp" in "fpc-1.0.2/examples/forms" (Linux). Unfortunatly, I have error following : ------------------------------------------------------------ [quy] /tmp/forms$ ppc386 menu.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 menu.pp Assembling menudemo Linking menu /usr/X11R6/lib//libforms.a(pixmap.o): In function `cleanup_xpma_struct': pixmap.o(.text+0x27): undefined reference to `XpmLibraryVersion' pixmap.o(.text+0xc8): undefined reference to `XpmFreeAttributes' /usr/X11R6/lib//libforms.a(pixmap.o): In function `fl_create_from_pixmapdata': pixmap.o(.text+0x57f): undefined reference to `XpmAttributesSize' pixmap.o(.text+0x5b5): undefined reference to `XpmCreatePixmapFromData' /usr/X11R6/lib//libforms.a(pixmap.o): In function `fl_read_pixmapfile': pixmap.o(.text+0x843): undefined reference to `XpmAttributesSize' pixmap.o(.text+0x879): undefined reference to `XpmReadFileToPixmap'

Try adding {$linklib xpm} in the menu.pp sourcecode.

Show quoted text 6 lines
menu.pp(122) Warning: Error while linking Closing script ppas.sh 121 Lines compiled, 1.7 sec ------------------------------------------------------------- Would you tell me how to create popup et pulldown menus with fpc ?(console and X) Any DOC I could found for this ?

On the console this will be hard; there is no uniform interface for both console and X yet.

Michael.

Reply by email

NDQ
to Unknown author
Show quoted text 19 lines
> [quy] /tmp/forms$ ppc386 menu.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 menu.pp > Assembling menudemo > Linking menu > /usr/X11R6/lib//libforms.a(pixmap.o): In function `cleanup_xpma_struct': > pixmap.o(.text+0x27): undefined reference to `XpmLibraryVersion' > pixmap.o(.text+0xc8): undefined reference to `XpmFreeAttributes' > /usr/X11R6/lib//libforms.a(pixmap.o): In function `fl_create_from_pixmapdata': > pixmap.o(.text+0x57f): undefined reference to `XpmAttributesSize' > pixmap.o(.text+0x5b5): undefined reference to `XpmCreatePixmapFromData' > /usr/X11R6/lib//libforms.a(pixmap.o): In function `fl_read_pixmapfile': > pixmap.o(.text+0x843): undefined reference to `XpmAttributesSize' > pixmap.o(.text+0x879): undefined reference to `XpmReadFileToPixmap' Try adding {$linklib xpm} in the menu.pp sourcecode.

Just tried and now new error ;-)

[quy] /tmp/forms$ ppc386 menu
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 menu.pp
Assembling menudemo
Linking menu
/usr/bin/ld: cannot open -lxpm: No such file or directory menu.pp(125) Warning: Error while linking
Closing script ppas.sh
124 Lines compiled, 0.8 sec

Any idea ?

Thanks,

NGUYEN-DAI Quy Rue des Champs 84, B4020, Liège, Belgique Tél:+32-4-349.15.29 http://iris.ltas.ulg.ac.be

Reply by email