Symbols in shared libraries are not imported and exported by default on Windows. For exporting, I added the property WINDOWS_EXPORT_ALL_SYMBOLS to target mir_shared. CMake doesn't provide a way to import all symbols in a shared library, for importing symbols properly, declspec(dllimport) is needed. Otherwise there will be a redundant jmp instruction, though the program still works. Currently I'm using `#define extern declspec(dllimport) extern`, hope there will be a proper fix.
Symbols in shared libraries are not imported and exported by default on Windows. For exporting, I added the property WINDOWS_EXPORT_ALL_SYMBOLS to target mir_shared. CMake doesn't provide a way to import all symbols in a shared library, for importing symbols properly, declspec(dllimport) is needed. Otherwise there will be a redundant jmp instruction, though the program still works. Currently I'm using `#define extern declspec(dllimport) extern`, hope there will be a proper fix.