[PlanetCCRMA] linking to readline
Gregorio Canelos
gtc at email.arizona.edu
Sat Jul 1 20:07:01 PDT 2006
Hi,
I'm trying to compile a JACK example on FC3 and CCRMA using eclipse. I
get:
make -k clean all
rm -rf ./transport.o ./transport.d JackTransport
Building file: ../transport.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -otransport.o ../transport.c
Finished building: ../transport.c
Building target: JackTransport
Invoking: GCC C Linker
gcc -oJackTransport ./transport.o -ljack -lreadline
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `tgetnum'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `tgoto'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `tgetflag'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `BC'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `tputs'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `PC'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `tgetent'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `UP'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libreadline.so: undefined
reference to `tgetstr'
collect2: ld returned 1 exit status
make: *** [JackTransport] Error 1
make: Target `all' not remade because of errors.
Build complete for project JackTransport
I can't figure out why gcc is searching in that very long directory path
when I know the libreadline.a and .so files are located in my /usr/lib
directory. Then, when I specify -l/usr/lib, I get:
gcc -O0 -g3 -Wall -c -fmessage-length=0 -otransport.o ../transport.c
Finished building: ../transport.c
Building target: JackTransport
Invoking: GCC C Linker
gcc -L/usr/lib -oJackTransport ./transport.o -ljack -lreadline
/usr/lib/libreadline.so: undefined reference to `tgetnum'
/usr/lib/libreadline.so: undefined reference to `tgoto'
/usr/lib/libreadline.so: undefined reference to `tgetflag'
/usr/lib/libreadline.so: undefined reference to `BC'
/usr/lib/libreadline.so: undefined reference to `tputs'
/usr/lib/libreadline.so: undefined reference to `PC'
/usr/lib/libreadline.so: undefined reference to `tgetent'
/usr/lib/libreadline.so: undefined reference to `UP'
/usr/lib/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make: *** [JackTransport] Error 1
Any help greatly appreciated! Thanks!
Gregorio
More information about the PlanetCCRMA
mailing list