[Freeswitch-users] libfreeswitch question

Michael Jerris mike at jerris.com
Tue Dec 2 03:00:25 PST 2008


On Dec 2, 2008, at 5:55 AM, Woody Dickson wrote:

> Hi,
>
> I am just having a dumb question and hoping someone can help me.  I  
> am trying to run a c program with libfreeswitch embedded so I can  
> use some external mechanism to keep track of freeswitch, but I am  
> having problem while compiling:
>
> [root at localhost fs]# gcc switchnode.c -I/usr/local/freeswitch/ 
> include -L/usr/local/freeswitch/lib -lfreeswitch -lpthread
> switchnode.c: In function 'main':
> switchnode.c:11: warning: passing argument 1 of  
> 'switch_core_init_and_modload' makes integer from pointer without a  
> cast
> switchnode.c:11: warning: passing argument 3 of  
> 'switch_core_init_and_modload' from incompatible pointer type

looks like you have the wrong var types you are passing here.

>
> /usr/local/freeswitch/lib/libfreeswitch.so: undefined reference to  
> `clock_gettime'

-lrt

>
> /usr/local/freeswitch/lib/libfreeswitch.so: undefined reference to  
> `uuid_generate'

-luuid

>
> /usr/local/freeswitch/lib/libfreeswitch.so: undefined reference to  
> `crypt_r'

-lcrypt

>
> collect2: ld returned 1 exit status
> [root at localhost fs]#
>
>
> Does anyone know which library is missing?





More information about the FreeSWITCH-users mailing list