我是一個很大的問題,MongoDB的,ZeroMQ和C
我一直在使用ZeroMQ和C,以及使用的MongoDB和C另一個代碼,現在我已經合併這個代碼一些代碼,但是當我嘗試編譯使用該命令:當我安裝了蒙戈-C-驅動
In file included from /usr/local/include/mongo.h:24:0,
from write_log.h:13,
from get_by_log_code.h:6,
from logger.c:23:
/usr/local/include/bson.h:63:2: error: #error Must compile with c99 or define MONGO_HAVE_STDINT, MONGO_HAVE_UNISTD, MONGO_USE__INT64, or MONGO_USE_LONG_INT.
In file included from get_by_log_code.h:6:0,
from logger.c:23:
write_log.h: In function ‘write_log’:
write_log.h:70:2: error: incompatible type for argument 1 of ‘mongo_insert’
/usr/local/include/mongo.h:369:18: note: expected ‘struct mongo *’ but argument is of type ‘mongo’
write_log.h:70:2: error: too few arguments to function ‘mongo_insert’
/usr/local/include/mongo.h:369:18: note: declared here
:
gcc -static -lzmq -o logg logger.c /home/lis/mongo-c-driver/libmongoc.a
我得到這個誤差堆我已經使用make std = c89來解決MongoDB-C-api和ZeroMQ-C-api之間的衝突,我在logger.c文件中定義了錯誤堆棧要求的變量,但它沒有作品。
您能否澄清您的答案?不確定你的意思是「看起來像......」 – eykanal