Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Question] about my LINK errors

0 views
Skip to first unread message

Frank Langelage

unread,
Jun 18, 2000, 3:00:00 AM6/18/00
to
The order the libraries are named for the link command is wrong.
-lm is behind lgasrfeat.a.
You can add -lm at the and a second time or put your own libraries in front of
the system libs.
cc voice.o process.o ifunc.o util.o msg_q.o vms.o vms_sub.o ars1.o
ars2.o v_ad.o vms_util.o paramete.o sctools.o guide.o ipc_ex.o faxutil.o fax.o
q_call.o log.o lgasrfeat.a -ldti -ldxxx -lsrl -lm -lfax -lcurses -lsocket -lc
-lgthreads /usr/lib/libgthreads.a -o voice


"이승훈" schrieb:

> Hi SCO unix users, I am Seung-Hoon Lee. I have been trouble with link
> errors. You can see the link errors as following.
>
> ars1:/ars/as/asiana/old] make
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ voice.c
> syste
> m.h
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ process.c
> "process.c", line 390: warning: argument is incompatible with prototype: arg
> #1
> "process.c", line 390: warning: argument is incompatible with prototype: arg
> #2
> "process.c", line 393: warning: argument is incompatible with prototype: arg
> #1
> "process.c", line 449: warning: statement not reached
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ ifunc.c
> "ifunc.c", line 120: warning: argument is incompatible with prototype: arg
> #2
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ util.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ msg_q.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ vms.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ vms_sub.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ ars1.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ ars2.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ v_ad.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_
> vms_util.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_
> paramete.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ sctools.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ guide.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ ipc_ex.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ faxutil.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ fax.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ q_call.c
> cc -c -O -I. -D_POSIX_PTHREAD_SEMANTICS -D_SPLIT_LGSRFEAT_ log.c
> cc voice.o process.o ifunc.o util.o msg_q.o vms.o vms_sub.o ars1.o
> ars2.
> o v_ad.o vms_util.o paramete.o sctools.o guide.o ipc_ex.o faxutil.o fax.o
> q_call
> o log.o -ldti -ldxxx -lsrl -lm -lfax -lcurses -lsocket -lc -lgthreads
> /usr/lib/
> libgthreads.a lgasrfeat.a -o voice
> Undefined first referenced
> symbol in file
> log10 lgasrfeat.a(speechdetect.o)
> fabs lgasrfeat.a(speechdetect.o)
> voice: fatal error: Symbol referencing errors. No output written to voice
> *** Error code 1 (bu21)
>
> Certainly, I defined -lm option in my makefile. But, I ran make all, then I
> met the above link errors. Could you tell me what my problem is ?
>
> thanks...


이승훈

unread,
Jun 19, 2000, 3:00:00 AM6/19/00
to
0 new messages