-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Hi,
I'm getting the following issue with the 1.3 driver on ubuntu 1.4. Any suggestions?
gcc -c -o main.o main.c -I. -I /usr/local/include/libbson-1.0 -I /usr/local/include/libmongoc-1.0 -O2 --std=c99 -D_XOPEN_SOURCE -D_GNU_SOURCE In file included from /usr/local/include/libbson-1.0/bson-compat.h:38:0, from /usr/local/include/libbson-1.0/bson.h:23, from /usr/local/include/libmongoc-1.0/mongoc.h:22, from main.c:11: /usr/local/include/libbson-1.0/bson-macros.h:212:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__inline__’ # define BSON_INLINE __inline__ ^ /usr/local/include/libbson-1.0/bson-decimal128.h:61:20: note: in expansion of macro ‘BSON_INLINE’ static _Decimal128 BSON_INLINE ^ In file included from /usr/local/include/libbson-1.0/bson.h:33:0, from /usr/local/include/libmongoc-1.0/mongoc.h:22, from main.c:11: /usr/local/include/libbson-1.0/bson-decimal128.h:71:32: error: unknown type name ‘_Decimal128’ bson_Decimal128_to_decimal128 (_Decimal128 decimal128,
- is related to
-
CDRIVER-439 libbson and libmongoc should compile with -std=c99 and -D_XOPEN_SOURCE=600
- Closed