如何包括静态JavascriptCore C库(libjavascriptcore.a)?

发布于 2025-02-13 04:40:06 字数 348 浏览 1 评论 0原文

我能够在Linux上编译JavascriptCore,并且想使用JavascriptCore静态库。

我的理解是,在C中,文件是静态库,我需要一个标头文件,(。h)包括一个静态库来使用我的代码。碰巧的是,一旦编译,就会有webkit/webkitbuild/repares/lib/libjavascriptcore.a,我认为是javascriptCore静态库,但是该文件不带有像libjavascriptCore.h的标头文件。

还有一个JavaScriptCore.h在其他地方,我要找的标头文件吗?您如何在C代码中包含JavascriptCore? (PS:我实际上是在Swift中使用它的C API)。先感谢您!

I was able to compile JavaScriptCore on Linux and I want to use the JavaScriptCore static library.

It is my understanding that in C, .a files are the static libraries and I need a header file,(.h) to include a static library to work with my code. As it happens, once compiled, there is WebKit/WebKitBuild/Release/lib/libJavaScriptCore.a which I think is the JavaScriptCore static library however the file is not accompanied with a header file like libJavaScriptCore.h.

There is a JavaScriptCore.h somewhere else, is that the header file I'm looking for? How would you include the JavaScriptCore in you C code? (PS: I'm actually using it with Swift through it's C API). Thank you in advance!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文