I build two executables for the same application. 
Let's call them Papp (uses shared libs) and SPapp (statically linked).

The problem is that I get problems when trying to build the *static one*, 
but not the dynamic one. See the trace below. 

BTW, the static one runs fine despite the ominous error message. 
Can someone clue me in as to why the static one bombs at link time?

Thanks very much,

Sandiway


Dr. Sandiway Fong
NEC Research Institute Inc.
4 Independence Way
Princeton NJ 08540

(609) 951-2733
(609) 951-2482 (FAX)

Here is the linking stage...

/usr2/quintus/bin3.1.1/sun4-4.1/ld -e start -Bstatic Papp.o \
/usr2/quintus/generic/qplib3.1.1/library/sun4-4/libpl.a  \
/usr2/quintus/generic/qplib3.1.1/library/sun4-4/libplm.a  \
/usr2/quintus/bin3.1.1/sun4-4.1/libqp.a \
-lsspkg -lXpm -lm -L/usr/local/guide/lib -lguidexv  -lxvps -lxview \
-lolgx -lX11 -lXext -lcps  -lc -lpixrect -o SPapp
Undefined:
_XESetCreateGC
_XESetFreeFont
_XESetCloseDisplay
_XESetError
_XInitExtension
_XESetFreeGC
_XESetCopyGC
_XESetCreateFont
_XESetFlushGC
_XESetEventToWire
_XESetErrorString
_XESetWireToEvent
*** Error code 1
make: Fatal error: Command failed for target `SPapp'

ldd SPapp
SPapp: statically linked

The shared lib version is linked in exactly the same way save for the omission
of -Bstatic.