cmongo-c-driver

How can I resolved Unresolved inclusion: <mongoc.h>?


I am a green hands about mongoc. My mongo-c-driver is 1.6.3, and I want to do some operation to mongodb database, like create, update, insert and delete. But there are problems as shown below. My eclipse CDT contains the header file (path:/usr/local/include), but the IDE still cannot find them:

unresolved inclusion:<mongoc.h>

Can somebody give me some advice?

I installed the mongo-c-driver manually, without using the package manager.

enter image description here


Solution

  • Thanks goodness! I have solved it. No matter where you configure the mongo-c-driver, like /usr, /usr/local, or /usr/local/xxx(any name), you can find that the mongoc.h and others header files are all under libmongoc-1.0 folder, you should copy all the header file(xxxx.h)out of the libmongoc-1.0 folder and under include folder and that is will be ok. Good luck to everyone who encounter the same problem with me.