This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
?"undefined reference to rl_event_hook"
- To: cygwin at cygwin dot com
- Subject: ?"undefined reference to rl_event_hook"
- From: John dot Velman at HSC dot com
- Date: Wed, 9 May 2001 13:12:48 -0700
I'm out of my depth here --
I'm trying to compile swiprolog. Everything seems
to compile, but at the link stage the following results:
----
gcc -o pl -Lrc pl-atom.o pl-wam.o pl-stream.o pl-error.o pl-arith.o pl-bag.o pl
-comp.o pl-rc.o pl-dwim.o pl-ext.o pl-file.o pl-flag.o pl-fmt.o pl-funct.o pl-gc
.o pl-glob.o pl-itf.o pl-list.o pl-load.o pl-modul.o pl-op.o pl-os.o pl-prims.o
pl-pro.o pl-proc.o pl-prof.o pl-read.o pl-rec.o pl-rl.o pl-setup.o pl-sys.o pl-t
able.o pl-trace.o pl-util.o pl-wic.o pl-write.o pl-term.o pl-buffer.o pl-thread.
o pl-xterm.o pl-feature.o pl-ctype.o pl-main.o pl-extend.o frame.o -lrc -lreadli
ne -lncurses -lm
pl-rl.o(.text+0x1c1):pl-rl.c: undefined reference to `rl_event_hook'
pl-rl.o(.text+0x1ce):pl-rl.c: undefined reference to `rl_event_hook'
collect2: ld returned 1 exit status
make: *** [pl] Error 1
----
I checked, and libreadline.a is in /usr/lib, and of course a run
of nm -s libreadline.a shows entries for _rl_event_hook.
I just updated my cygwin installation this week (Monday?).
Any idea why the linker can't find it? Or what to check?
(By the way, librc.a is a
library prepared as part of the compile, and it was apparently
build successfully).
Sorry if this isn't an appropriate Cygwin question.
John Velman
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple