XForms: Problem linking XForms library on libc5 system

John Simons (muz@gic.net.au)
Wed, 24 Feb 1999 06:17:58 +0800

# To subscribers of the xforms list from "John Simons" <muz@gic.net.au> :

Hi all

I have recently decided to download and install the XForms library for my
libc5 Slackware linux system. The file I used for the install was
bxform-088.tgz.

After the usual tar -zxvf process to extract the files, I did a "make
install" to install the libforms.a and header files to my system (it
appears the library was copied to /usr/lib/libforms.a).

So far, so good.

The probs begin when I actually try to "link" a program with this library.
Consider the following output:

firewall:/usr/src/xforms/DEMOS# make
gcc -c -O -I../FORMS -Ifd freedraw.c
gcc -O -s freedraw.o -o freedraw -L../FORMS -lforms -L/usr/X11/lib -lXpm
-lX11 -lm
freedraw.o: In function `main':
freedraw.o(.text+0x15): undefined reference to `fl_initialize'
freedraw.o(.text+0x37): undefined reference to `fl_set_object_color'
freedraw.o(.text+0x5e): undefined reference to `fl_show_form'
freedraw.o(.text+0x63): undefined reference to `fl_do_forms'
freedraw.o(.text+0x68): undefined reference to `fl_finish'
freedraw.o: In function `draw_triangle':
freedraw.o(.text+0x82): undefined reference to `fl_vmode'
freedraw.o(.text+0x98): undefined reference to `fl_state'
freedraw.o(.text+0x9d): undefined reference to `fl_winget'
freedraw.o(.text+0xec): undefined reference to `fl_get_pixel'
freedraw.o: In function `draw_initialize':
freedraw.o(.text+0x165): undefined reference to `fl_set_form_minsize'

It can be seen that the demo .c code is compiling ok, but it is failing to
link the libforms.a library routines.

If I specify the precise location of the libraries with a -L/usr/lib
arguement, still no luck.

My system is gcc version 2.7.2.1 and ldd: version 1.8.10 - Libc5.

Thanks,

John.

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/