C - PJLIB 为什么不工作?

发布于 2024-09-12 15:54:37 字数 553 浏览 2 评论 0原文

我关注这个 PJLIB ( https://trac.pjsip.org/repos/wiki /入门/Autoconf )。但我还不能得到这个,它总是给出未定义的参考,任何人都可以看一下。

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

谢谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南城旧梦 2024-09-19 15:54:37

您没有与图书馆链接。你需要类似的东西:

 gcc myapp.c -lpjlib

但我不知道你到底需要什么 - 它将在库的文档中描述。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文