[CM] sndlib compilation problem

Bill Schottstaedt bil@ccrma.Stanford.EDU
Tue, 27 Apr 2004 04:15:13 -0700


 > So, I found where libpthread.so is : /usr/lib
 > but this directory is still in LIBS variable of the makefile : LIBS =-L/usr/lib -lm

Put the -L/usr/lib before the -lpthread in the LIBS statement.
I think currently you have:

ld -r  headers.o audio.o io.o sound.o xen.o vct.o clm.o sndlib2xen.o clm2xen.o midi.o -o sndlib.a    -lguile
-lguile-ltdl -lqthreads -lpthread -lcrypt -lm -L/usr/lib -lm

so change it to

ld -r  headers.o audio.o io.o sound.o xen.o vct.o clm.o sndlib2xen.o clm2xen.o midi.o -o sndlib.a    -lguile
-lguile-ltdl -lqthreads -L/usr/lib -lpthread -lcrypt -lm