Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1214

Error building with 1.3 Driver on Ubuntu 14.04

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 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,
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            john.page@mongodb.com John Page
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: