Make sure that the library libeXosip.so is located in one of the following directories: - the dirs you specified with -L - the linker's default directories (check the dirs with # ld -verbose | grep SEARCH_DIR ) jay wrote: > Hello > When I using “gcc sip_reg.c -o sip_reg -leXosip -losip2 -losipparser2 -lpthread -L/usr/local/lib” to compile sip_reg.c , I get the error msg as follows : > /usr/bin/ld: cannot find -leXosip > collect2: ld returned 1 exit status” > > how can I overcome of errors? > > Cheers, > Jay > > >