我遵循这个 PJLIB ( https://trac.pjsip.org/repos/wiki/Getting-Started/Autoconf )。但是我还不能搞定,总是给出 undefined reference ,任何人都可以看看。
Stackoverlow 源代码损坏请从 此处详细信息: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
谢谢
最佳答案
您没有链接到图书馆。你需要这样的东西:
gcc myapp.c -lpjlib
但我不知道您到底需要什么 - 它将在图书馆的文档中进行描述。
关于c++ - C - PJLIB 为什么不工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3379532/