This is a discussion on Re: Static linking problem in motif. - Motif ; References: I found the following workaround on RedHat 7.3: cc \ -o prog \ prog.o \ -Wl,-Bstatic \ -L/usr/X11R6/lib \ -Wl,-u,_XEditResCheckMessages \ -lXmu \ -lXm \ -lXt \ -lXp \ -lXext \ -lX11 \ -lSM \ -lICE \ -Wl,-Bdynamic \ ...
References:
I found the following workaround on RedHat 7.3:
cc \
-o prog \
prog.o \
-Wl,-Bstatic \
-L/usr/X11R6/lib \
-Wl,-u,_XEditResCheckMessages \
-lXmu \
-lXm \
-lXt \
-lXp \
-lXext \
-lX11 \
-lSM \
-lICE \
-Wl,-Bdynamic \
-ldl
The idea is to force the use of EditresCom.o from libXmu instead of libXm.
There might be a better workaround, but hope this helps.
Brad