Compiling libbson on Windows with mingw64:
$ make Scanning dependencies of target bson_shared [ 1%] Building C object CMakeFiles/bson_shared.dir/src/bson/bcon.c.obj In file included from C:/Users/vagrant/gittmp/libbson/src/bson/bson.h:23:0, from C:/Users/vagrant/gittmp/libbson/src/bson/bcon.h:24, from C:/Users/vagrant/gittmp/libbson/src/bson/bcon.c:24: C:/Users/vagrant/gittmp/libbson/src/bson/bson-compat.h:110:9: error: unknown type name 'RTL_RUN_ONCE' typedef RTL_RUN_ONCE INIT_ONCE; ^ In file included from C:/Users/vagrant/gittmp/libbson/src/bson/bson.h:34:0, from C:/Users/vagrant/gittmp/libbson/src/bson/bcon.h:24, from C:/Users/vagrant/gittmp/libbson/src/bson/bcon.c:24: C:/Users/vagrant/gittmp/libbson/src/bson/bson-iter.h: In function 'bson_iter_timeval_unsafe': C:/Users/vagrant/gittmp/libbson/src/bson/bson-iter.h:394:18: error: 'suseconds_t' undeclared (first use in this function) tv->tv_sec = (suseconds_t) (value / 1000); ^ C:/Users/vagrant/gittmp/libbson/src/bson/bson-iter.h:394:18: note: each undeclared identifier is reported only once for each function it appears in CMakeFiles/bson_shared.dir/build.make:54: recipe for target 'CMakeFiles/bson_shared.dir/src/bson/bcon.c.obj' failed make[2]: *** [CMakeFiles/bson_shared.dir/src/bson/bcon.c.obj] Error 1
- is related to
-
CDRIVER-441 Add missing declarations for libbson for older MinGW
- Closed
-
CDRIVER-663 i386, i686, and x86_64 build & test in Evergreen
- Closed
- related to
-
CDRIVER-959 mingw build & test in Evergreen
- Closed