Fatal error: json-glib.h file not found

心不动则不痛 提交于 2019-12-11 14:12:24

问题


I'm trying to accomplish a simple json query, but havn't been able to get any code to compile because the error is as below:

fatal error: json-glib.h file not found

It comes up when trying to compile the following line:

#include <json-glib.h>

I've done a bunch of searching on google and can't find what I've done wrong.

Any help would be appreciated!

Loren

Edit:

I’m using Tizen studio and developing a wearable app for a Samsung Gear S3.


回答1:


As you're developing app for Samsung Gear S3, you should include headers available for Tizen Version 3.0. For Wearable 3.0, available header for json-glib is as below. You may try using this in your app.

#include <json-glib/json-glib.h>

The header (#include <json-glib.h>) you're trying to use is available till Wearable 2.3.2.




回答2:


Please use

#include <json-glib/json-glib.h>


来源:https://stackoverflow.com/questions/51549411/fatal-error-json-glib-h-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!