1

运行 10.7.2 按照指南配置而不是附加 CFLAGS=-Wno-error 以绕过错误,而不是我陷入困境

In file included from /usr/local/src/nginx-gridfs/mongo-c-driver/src/bson.h:24,
                 from /usr/local/src/nginx-gridfs/mongo-c-driver/src/mongo.h:24,
                 from /usr/local/src/nginx-gridfs/ngx_http_gridfs_module.c:43:
/usr/local/src/nginx-gridfs/mongo-c-driver/src/platform.h:50:2: error: #error must have a 64bit int type
make[1]: *** [objs/addon/nginx-gridfs/ngx_http_gridfs_module.o] Error 1
make: *** [build] Error 2

任何的想法?

4

1 回答 1

1

我在为 Windows 编译时遇到了同样的问题。您需要确保您有 int64_t 和 uint64_t 的 typedef。

为了解决这个问题,我需要确保定义了MONGO_USE__INT64

对于 Mac,你几乎肯定有unistd.h可用 - 所以确保你定义MONGO_HAVE_UNISTD

于 2012-10-15T09:36:25.620 回答