das_j
das_j

Reputation: 4794

MinGW Hide method names in dll

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

Answers (1)

user703016
user703016

Reputation: 37945

You can use a GCC extension, the visibility attribute :

__attribute__ ((visibility ("hidden"))) 

Upvotes: 2

Related Questions