Question

I follow this PJLIB ( https://trac.pjsip.org/repos/wiki/Getting-Started/Autoconf ). But i cant get this up yet, always its giving undefined reference, can anyone please have a look kindly.

Stackoverlow source code gets broken please find from here details: http://gist.github.com/5765529


[sun@example mysip]$ gcc myapp.c
/tmp/ccEKxwjG.o: In function `main':
myapp.c:(.text+0xa): undefined reference to `pjsua_create'
collect2: ld returned 1 exit status

Thank you

Was it helpful?

Solution

You are not linking with the library. You need something like:

 gcc myapp.c -lpjlib

but exactly what you need I don't know - it will be described in the library's documentation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top