I added,
I$(MONGODBCDRIVER)/inlcude/libmongoc-1.0 -L$(MONGODBCDRIVER)/lib -lmongoc-1.0
to g++ and it works.
But I deleted -L$(MONGODBCDRIVER)/lib
, it still works. Why?
Another question, what does lmongoc-1.0
means?
Is it to link the libmongoc-1.0.la
in the $(MONGODBCDRIVER)/lib
directory?