mbsim-env / fmatvec

A fast vector/matrix library
https://www.mbsim-env.de
GNU Lesser General Public License v2.1
10 stars 5 forks source link

Control exported symbols #13

Closed GreenGary closed 4 years ago

GreenGary commented 4 years ago

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.