[comp.windows.x] Problems linking Xlib

jsivier@uxe.cso.uiuc.edu (01/12/90)

To Whom It May Concern,

    I am just getting started with X Windows and am having trouble getting my
first program to run.  I am running DECWindows on a VAXStation II/GPX.  I
compile my program with most of the windowing code coming from a demo which
works, and then link it with my own library, the VAXC run-time library and
the shareable image of the DECWindows library.

    When the program is run it seems to run OK until it tries to return from
the routine in my library which calls XCreateWindow().  The calls to the Xlib
routines all seem to return correctly, but when it tries to return to the main
program it bombs.  I get an ACCESS VIOLATION and a message saying IMPROPERLY
HANDLED CONDITION, IMAGE EXIT FORCED.  Then it pjrints out a stack and register
dump.

    I thought at first that I might be doing the link incorrectly and thus it
is unable to return from my library routine.  I have several variations of the
link and still have the same results.

    If anyone has any suggestions I would be glad to here them.

    Thank you.

Jon Sivier
jsivier@uxe.cso.uiuc.edu