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

NDQ NDQ at iris.ltas.ulg.ac.be
Sun Oct 29 22:11:02 CET 2000


On Sun, Oct 29, 2000 at 10:52:17AM +0100, Michael.VanCanneyt at Wisa.be wrote:
> 
> > [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




More information about the fpc-pascal mailing list