gpt4 book ai didi

c - lib.c 和 lib.h 如何将此库导入到 swift 源文件

转载 作者:行者123 更新时间:2023-11-30 19:40:51 28 4
gpt4 key购买 nike

我有两个文件:lib.clib.h 。我需要在我的 swift 中使用这个 C 源代码代码。

如何导入这两个C文件?

最佳答案

将会有一个 lib-Bridging-Header.h 文件,您需要将 C 函数放入该 header 中。另请参阅here .

关于c - lib.c 和 lib.h 如何将此库导入到 swift 源文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34605153/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com