I want to use libmongoc
for my C program but whenever I try to establish a connection to my cloud database, it shows an error:
/usr/local/include/libmongoc-1.0/mongoc/mongoc.h:22:10: fatal error: bson/bson.h: No such file or directory
22 | #include <bson/bson.h>
| ^~~~~~~~~~~~~
Any fix for this? I installed libmongoc
and even libbson
using these docs: http://mongoc.org/libmongoc/current/installing.html
But it doesnt seem to work. Any help would be appreciated.
I am using Ubuntu 20.04.1 and libmongoc 1.17.3
Edit: I got to know the error. the path to the bson.h file is wrong but somehow i cannot edit the file. Is there any workaround?