The mongoc_collection_replace_one function is not available in the dynamic library for Windows because the MONGOC_EXPORT is missing from the header file ... see below:
MONGOC_EXPORT (bool)
mongoc_collection_update_many (mongoc_collection_t *collection,
const bson_t *selector,
const bson_t *update,
const bson_t *opts,
bson_t *reply,
bson_error_t *error);
bool
mongoc_collection_replace_one (mongoc_collection_t *collection,
const bson_t *selector,
const bson_t *replacement,
const bson_t *opts,
bson_t *reply,
bson_error_t *error);
MONGOC_EXPORT (bool)
mongoc_collection_delete (mongoc_collection_t *collection,
mongoc_delete_flags_t flags,
const bson_t *selector,
const mongoc_write_concern_t *write_concern,
bson_error_t *error)
- related to
-
CDRIVER-2761 Catch missing MONGOC_EXPORTs automatically
- Backlog