我正在尝试在 json-c 中执行示例 c 结构程序。我已经使用 git clone 安装了 json-c。我如何编译我的c 程序。我必须在 Makefile 中进行哪些更改? 或者还有其他方法可以执行json-c中的程序吗?
提前谢谢您。
最佳答案
如果是可以从 https://github.com/json-c/json-c.git 克隆的 json-c
维基百科 https://github.com/json-c/json-c/wiki告诉您需要做什么:
To setup JSON-C to build on your system please run:
./configure --prefix=/some/install/path
make
make check
make install
关于c - Json-c示例程序编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19923337/