Closed Algebro7 closed 7 years ago
I remember trying to hide symbols but eventually gave up as I couldn't get the same result as the windows dll.
I agree, it seems to be the default behavior on Linux to export everything. I am fine with rejecting this PR since it seems like kind of a hack and may not be reliable, as long as you don't think exporting all symbols will cause issues.
I like hacks! I doubt it would cause issues.
Set the default visibility in cmake to hidden, and added an attribute to the DllExport macro to mark those functions as visible. This may be a bug or it may be normal, but for some reason the following symbols are also exported: