<source snipped>
here is my makefile:
TOOLKIT_LIB_DIR = /usr/X11R6/lib MOTIF_LIB_DIR = /usr/X11R6/LessTif/Motif1.2/lib MOTIF_INCLUDE_DIR = /usr/X11R6/LessTif/Motif1.2/include
CPPFLAGS = -I$(MOTIF_INCLUDE_DIR) X11FLAGS = -I$(X11_INCLUDE_DIR) LDLIBS= -L$(TOOLKIT_LIB_DIR) -lXm -lXt -lX11 -lm
%: %.c cc $(CPPFLAGS) $(X11FLAGS) -o $@ [EMAIL PROTECTED] $(LDLIBS)
On the RedHat 9 system to which I have access, /usr/X11R6/lib/libXm.so is a link to an OpenMotif library, and your makefile will link your executable with that library (you can verify this by running ldd on the executable; it probably pulls in libXm.so.3 rather than libXm.so.1, the LessTif version). Changing LDLIBS to be
LDLIBS= -L$(MOTIF_LIB_DIR) -lXm -L$(TOOLKIT_LIB_DIR) -lXt -lX11 -lm
and relinking will take care of the runtime errors.
Eric Branlund [EMAIL PROTECTED]
_______________________________________________ Lesstif mailing list [EMAIL PROTECTED] https://terror.hungry.com/mailman/listinfo/lesstif
