From: law@news.cis.ohio-state.edu
Newsgroups: fj.mail-lists.x-window
Subject: Problem with finding motif routines
Date: 23 Jul 92 13:04:26 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: 18 Jul 92 04:36:00 GMT
Message-Id: <CMM.0.88.711398216.law@blueberry>
Newsgroups: comp.windows.x


I am having a problem compiling a C program on the HPs. The program makes 
use of the motif and the X libraries. Below, I have listed the errors 
shown during linking. The program compiles without any problem on the
SUNs. The makefile is also listed for reference. Any help or suggestion
to eliminate these errors would be highly appreciated. Please send email
to law@cis.ohio-state.edu 



hexagon 3> make
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c push.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c string.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c dialog.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c s.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c label.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c menu.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c menubar.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c mainwind.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c drawtest.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c scale.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c parallel.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c stop_watch.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c main.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c warp.c
        cc -g -I/usr/local/include -I/usr/include/Motif1.1 -c colorx.c
        cc -o s push.o           string.o        dialog.o        s.o             label.o                 menu.o          menubar.o       mainwind.o      drawtest.o      scale.o                 parallel.o      stop_watch.o    main.o          warp.o          colorx.o -L/usr/lib/Motif1.1 -lXm -lXt -lX11 -lm
ld: Undefined external -
        _rint
        _regcmp
        _regex
        _XHPIs16bitCharacter
        _XHPGet16bitMixedFontStruct
        __XKeySymRebound
        _XHPRegisterFilter
        _XHPUnRegisterFilter
        __XInitModMap
        __XInitTranslationList
        __xmask
ld: output file still contains undefined symbols
*** Error code 1

Stop.
hexagon 4> cat makefile
EXEC=   s
CFLAGS=-g -I/usr/local/include -I/usr/include/Motif1.1
LIBS= -L/usr/lib/Motif1.1 -lXm -lXt -lX11 -lm
OBJECTS=        push.o          \
                string.o        \
                dialog.o        \
                s.o             \
                label.o         \
                menu.o          \
                menubar.o       \
                mainwind.o      \
                drawtest.o      \
                scale.o         \
                parallel.o      \
                stop_watch.o    \
                main.o          \
                warp.o          \
                colorx.o
$(EXEC):        $(OBJECTS)
        cc -o $(EXEC) $(OBJECTS) $(LIBS)
hexagon 5> exit
exit

script done on Fri Jul 17 14:27:59 1992


-Asish Law