I have compiled Mongo C++11 drivers successful on Windows 10 64 bit using MSBuild. When trying to run a test got the error message;
The ordinal 4694 could not be located in the dynamic library libmongoc-1.0.dll
After a search on how to force linking C++ libraries by name I was pointed to CMake's CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS option.
After setting it within CMakeLists.txt for compiling Mongo C driver I still get the same error message, set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON)
. I tried to set it in all the Mongo drivers (BSON, C and C++) and still get the same error message. I also tried it on the CMake command line -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
and got the same error message.
Am I using this option for the intended purpose or is there a different option to set?