Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top