Hi everyone,

I am new to program compiling. My small code need to be compiled with openmotif or lesstif which has Xm lib. Below is the make file.
PHP Code:
XLIBS = -L/opt/local/var/macports/software/openmotif/2.3.2_2/opt/local/lib  -L/usr/X11R6/lib -lXm -lXt -lX11
#XLIBS = -L/plat/i686/LessTif/Motif2.0/lib  -L/usr/X11R6/lib -lXm -lXt -lX11
#XLIBS = -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXm -lXt -lX11
#XLIBS = -L/usr/X11R6/LessTif/Motif1.2/lib  -L/usr/X11R6/lib -lXm -lXt -lX11
XINCS =  -I/opt/local/var/macports/software/openmotif/2.3.2_2/opt/local/include -I/usr/X11R6/include
#XINCS =  -I/plat/i686/LessTif/Motif2.0/include -I/usr/X11R6/include
#XINCS = -I/usr/X11R6/LessTif/Motif1.2/include -I/usr/X11R6/include
#XINCS = -I/usr/X11R6/include


OBJS  CDispRG.o disrg.o XInfo.o CDisp.o CGetData.o bytescale.o
OBJS1 
dismag.o XInfo.o CDisp.o CGetData.o CDispMag.o bytescale.o
OBJS2 
disbyte.o XInfo.o CDisp.o CGetData.o CDispMag.o bytescale.o
OBJS3 
dismph.o XInfo.o CDisp.o CGetData.o CDispComp.o bytescale.o
OBJS4 
dishgt.o XInfo.o CDisp.o CGetData.o CDispHgt.o bytescale.o
OBJS5 
stats.o  CGetData.o CStats.o bytescale.o
OBJS6 
disany.o bytescale.o CStats.o XInfo.o CDisp.o CGetData.o CDispMag.o
OBJS7 
disany_mnx.o bytescale.o XInfo.o CDisp.o CGetData.o CDispMag.o
OBJS8 
dishgtfile.o XInfo.o CDisp.o CGetData.o CDispHgt.o bytescale.o
OBJS9 
dismphfile.o XInfo.o CDisp.o CGetData.o CDispComp.o bytescale.o

CC 
g++ -O3 -Wall
#CC = g++ -Wall -g

all dishgt disrg dismph dismag disbyte disany disany_mnx dismphfile dishgtfile
#all : stats dishgt disrg dismph dismag disbyte disany disany_mnx

clean :
    
rm -*.o
    rm 
-f dishgt disrg dismph dismag disbyte disany disany_mnx dismphfile dishgtfile

install 
:
    
mv dishgt $(INT_BIN)
    
mv dismph $(INT_BIN)
    
mv dismag $(INT_BIN)
    
mv disbyte $(INT_BIN)
    
mv disrg  $(INT_BIN)
    
mv disany $(INT_BIN)
    
mv disany_mnx $(INT_BIN)
    
mv dismphfile $(INT_BIN)
    
mv dishgtfile $(INT_BIN)
#   mv stats  $(INT_BIN)

dishgt : ${OBJS4}
    ${
CC} ${OBJS4}  -o dishgt ${XLIBS}
dishgtfile : ${OBJS8}
    ${
CC} ${OBJS8}  -o dishgtfile ${XLIBS}

disrg : ${OBJS}
    ${
CC} ${OBJS}  -o disrg ${XLIBS}

dismph : ${OBJS3}
    ${
CC} ${OBJS3}  -o dismph ${XLIBS}

dismphfile : ${OBJS9}
    ${
CC} ${OBJS9}  -o dismphfile ${XLIBS}

dismag : ${OBJS1}
    ${
CC} ${OBJS1}  -o dismag ${XLIBS}

disbyte : ${OBJS2}
    ${
CC} ${OBJS2}  -o disbyte ${XLIBS}

disany : ${OBJS6}
    ${
CC} ${OBJS6}  -o disany ${XLIBS}

disany_mnx : ${OBJS7}
    ${
CC} ${OBJS7}  -o disany_mnx ${XLIBS}

stats : ${OBJS5}
    ${
CC} ${OBJS5}  -o stats ${XLIBS}


.
cpp.o:
     ${
CC} -${XINCS} $*.cpp 
compile seems to be successful and I didn't find any error. But when I come to use the binary command it return the error like:
"Error: Unresolved inheritance operation"

Does it make sense to anybody? If it is a problem with openmotif? Coz I didn't find too much process in Makefile.