[fpc-pascal]fpc-1.0.2/examples/forms : compiling error

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sun Oct 29 10:52:17 CET 2000

On Sat, 28 Oct 2000, NDQ wrote:

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

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


More information about the fpc-pascal mailing list