-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Client
-
Environment:Microsoft Windows
The C++ mongoclient target supports the shared library generation, however no exports are added to the generated DLL.
I took Little Max's patch and ported to 1.8.2 and modified a little bit to export only the necessary API-s: the public functions and static members. You should verify/correct whether all the necessary symbols are exported: maybe I missed some functions that we do not use in our project, but make part of the public API.
Please note that my patch assumes by default that you want to use the headers as dllimport (I think this should be the common case). For linking with the static mongoclient library the MONGO_LIB macro must be defined before including the dbclient.h (or any other header).
- is depended on by
-
SERVER-11879 Using Windows mongoclient.dll, statics have duplicate storage
- Closed
- is related to
-
CXX-81 On Windows, MONGO_API functions should be decorated with __cdecl.
- Closed