[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gettimeofday does not link with g++
From: |
Sam Steingold |
Subject: |
gettimeofday does not link with g++ |
Date: |
Thu, 27 Nov 2008 14:53:12 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
The error I get is:
g++ -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-Wno-sign-compare -Wno-format-nonliteral -Wno-invalid-offsetof
-falign-functions=4 -g -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE
-DSAFETY=3 -DDEBUG_GCSAFETY -DUNICODE -DDYNAMIC_FFI -I. gllib/uniwidth/width.o
gllib/uniname/uniname.o gllib/localcharset.o gllib/gettimeofday.o spvw.o
spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o
stream.o socket.o io.o funarg.o array.o hashtabl.o list.o package.o record.o
weak.o sequence.o charstrg.o debug.o error.o misc.o time.o predtype.o symbol.o
lisparit.o i18n.o foreign.o unixaux.o built.o modules.o -lreadline -lncurses
-ldl /home/sds/src/top/lib/libavcall.a /home/sds/src/top/lib/libcallback.a
-lsigsegv -o lisp.run
time.o: In function `get_real_time(internal_time_t*)':
/home/sds/src/clisp/current/build-gxx-g/../src/time.d:75: undefined reference
to `rpl_gettimeofday(timeval*, void*)'
time.o: In function `C_sleep()':
/home/sds/src/clisp/current/build-gxx-g/../src/time.d:503: undefined reference
to `rpl_gettimeofday(timeval*, void*)'
/home/sds/src/clisp/current/build-gxx-g/../src/time.d:529: undefined reference
to `rpl_gettimeofday(timeval*, void*)'
collect2: ld returned 1 exit status
nm gllib/gettimeofday.o
U gettimeofday
0000000000000000 T rpl_gettimeofday
note that the error message lists the arglist of rpl_gettimeofday.
when I remove gllib/uniwidth/width.o from the command line, I get
charstrg.o: In function `char_width(chart)':
/home/sds/src/clisp/current/build-gxx-g/../src/charstrg.d:324: undefined
reference to `uc_width'
without the arglist of uc_width.
any ideas?
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 8.10 (intrepid)
http://honestreporting.com http://israelunderattack.slide.com
http://jihadwatch.org http://truepeace.org http://palestinefacts.org
C combines the power of assembler with the portability of assembler.
- gettimeofday does not link with g++,
Sam Steingold <=