sun openwindows problem static linking and x libraries 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 independence way princeton nj fax here is the linking stage usr quintus bin sun ld e start bstatic papp o usr quintus generic qplib library sun libpl a usr quintus generic qplib library sun libplm a usr quintus bin sun libqp a lsspkg lxpm lm l usr local guide lib lguidexv lxvps lxview lolgx lx lxext lcps lc lpixrect o spapp undefined xesetcreategc xesetfreefont xesetclosedisplay xeseterror xinitextension xesetfreegc xesetcopygc xesetcreatefont xesetflushgc xeseteventtowire xeseterrorstring xesetwiretoevent error code 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 ldd papp lsspkg usr local lib libsspkg so lxpm usr local lib libxpm so lxvps usr openwin lib libxvps so lxview usr openwin lib libxview so lolgx usr openwin lib libolgx so lx usr openwin lib libx so lcps usr openwin lib libcps so lc usr lib libc so lpixrect usr lib libpixrect so ldl usr lib libdl so
