Subject: [mongodb-user] Re: Is there a way to change
_ITERATOR_DEBUG_LEVEL=2 to =0 when compiling the
libmongocxx on Windows (visual studio 14)
As discussed in the thread you linked to, this is a bug that will be fixed in the mongoc 1.7.0 release, which is currently in RC. For testing
purposes, you can try using the latest mongoc RC (along with the master branch of mongocxxx rather than 3.1.x), but for use in production, you'll need to dynamically link until both mongoc 1.7.0 and mongocxx 3.2.0 are released.
On Saturday, August 5, 2017 at 8:30:28 AM UTC-4, William Bouchard wrote:Hi,
Sorry for my time away, I'm back on this problem.So, you were right, I was compiling libbson and libmongoc in Debug mode instead of Release.That did correct the error, but I got some new ones.
I got more than 2000 error like this one : error LNK2001: unresolved external symbol __imp_mongoc_read_prefs_newexactly like in this subject: https://groups.google.com/d/msg/mongodb-user/iUaqAMScXMM/vGGMXoqWDQAJ
I tried with the mongo-c-driver version 1.7 and 1.6.3, but it changes nothing.Maybe you have an idea ?
Thanks for helping :)
On Monday, July 10, 2017 at 7:15:44 PM UTC+2, Sam Rossi wrote:Just to make sure, you've compiled libbson and libmongoc in release mode as well?
On Monday, July 10, 2017 at 9:43:51 AM UTC-4, William Bouchard wrote:Thank you for your answer. It seems that even if I compile the mongocxx and bsoncxx static libs in Release mode via CMake, the debug level is set to 2, while in my project, the debug level is set to 0.
On Thursday, July 6, 2017 at 7:31:49 PM UTC+2, Sam Rossi wrote:Hi William! I think this is a Visual Studio setting, not a driver configuration. From looking at other instances where people have had the same problem, it looks the debug level is set to 2 for debug builds and 0 for release builds
. Is it possible you compiled libmongocxx and libbsoncxxx is a different mode (debug vs. release) than your own application?
On Wednesday, July 5, 2017 at 5:58:01 PM UTC-4, William Bouchard wrote:Hello,
As I said in the subject I'm looking for a way to change the _ITERATOR_DEBUG_LEVEL from 2 to 0 in the static version of libmongocxx and libbsoncxx.
The reason is I'm using this lib in Unreal Engine 4 and I'm getting this kind of error:
Error libbsoncxx.lib : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in SharedPCH.Engine.h.obj Error libmongocxx.lib : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in SharedPCH.Engine.h.obj
Is there a way to do that?
You received this message because you are subscribed to the Google Groups "mongodb-user"
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]
To post to this group, send email to [email protected]
Visit this group at https://groups.google.com/group/mongodb-user
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/c3a5ad5e-4317-46dc-a8ec-59a52758d769%40googlegroups.com
For more options, visit https://groups.google.com/d/optout