我从官网上得到了mongo-c-driver,如下:
$git https://github.com/mongodb/mongo-c-driver.git
$cd mongo-c-driver
$./autogen.sh
$ make
$ sudo make install
Deal.c:2:19: fatal error: mongo.h: No such file or directory
但是,当我像这样运行名为“Deal.c”的 C 文件时:
gcc -o Deal Deal.c -l /usr/local/include -L /usr/local/lib -lmongoc
Error:#include "mongo.h"
^ compilation terminated.
我的系统版本:是 Ubuntu 13.10