Mongocxx: compiling my app with libs fails: missing bson-1.0.dll

Good afternoon,

First the basics…
OS: Windows 10 (19043)
IDE: VS 2019
Boost: 1.77.0
Mongo C Driver: 1.19.0
Mongo C++ Driver: 3.6.5

I have compiled the mongocxx connector. No errors there. I have added the libs in VS2019 and the includes dir, and all that fun stuff. I am use just static libs at the moment, but mongocxx seems to continue to look for bson-1.0.dll. I have included the bin dir that contains the dlls from the build, but bson-1.0.dll is not in there. Is this dll located somewhere other than the ‘install’ target cmake writes to? Or did I miss a flag in the cmake variables?

This error appears when launching VS2019 debugger:
image

This is the error in the Output window:
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\Users\blkdr\source\repos\MyApp\Release\MyApp-Main.exe’. Symbols loaded.
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\ntdll.dll’.
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\kernel32.dll’.
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\KernelBase.dll’.
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\ucrtbase.dll’.
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\mongo-cxx-driver\bin\bsoncxx.dll’. Symbols loaded.
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\mongo-cxx-driver\bin\mongocxx.dll’. Symbols loaded.
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\msvcp140.dll’.
‘MyApp-Main.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\vcruntime140.dll’.
The thread 0x2500 has exited with code -1073741515 (0xc0000135).
The thread 0x22e8 has exited with code -1073741515 (0xc0000135).
The program ‘[21528] MyApp-Main.exe’ has exited with code -1073741515 (0xc0000135) ‘A dependent dll was not found’.

Figured I’d post here to see if anyone might know off the top of their heads what the problem might be. Like I said, just a personal project, so not a big deal. Just trying something new…

Forgot to mention, I compiled mongocxx in both 32 bit and 64 bit. Compiled MyApp for both and both are getting the dll errors. I have VS2019 build configs pointing to the correct compiles for the dlls.

It’s in mongoc, not mongocxx. :roll_eyes:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.