Reputation: 4794
I was looking for hiding methods in dlls. In MSVC there is a way to create a def file and link it with the NONAME attribute (see here).
Is the same possible in MinGW?
Upvotes: 2
Views: 422
Reputation: 37945
You can use a GCC extension, the visibility attribute :
__attribute__ ((visibility ("hidden")))
Upvotes: 2