Use attribute/declspec to explicitly export symbols to shared library.
Under Linux, the change reduces the number of symbols from ~2200 to ~1550 (nm -D libfmatvec.so | wc -l)
Under MSVC Windows, ~17.000 symbols were exported with the WINDOWS_EXPORT_ALL_SYMBOLS cmake target property, making the resultung dll. With this PR, Windows dll exports a similar number of Symbols as Linux.
Use attribute/declspec to explicitly export symbols to shared library. Under Linux, the change reduces the number of symbols from ~2200 to ~1550 (
nm -D libfmatvec.so | wc -l
) Under MSVC Windows, ~17.000 symbols were exported with theWINDOWS_EXPORT_ALL_SYMBOLS
cmake target property, making the resultung dll. With this PR, Windows dll exports a similar number of Symbols as Linux.