2

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?

Community
  • 1
  • 1
das_j
  • 4,444
  • 5
  • 31
  • 47

1 Answers1

2

You can use a GCC extension, the visibility attribute :

__attribute__ ((visibility ("hidden"))) 
user703016
  • 37,307
  • 8
  • 87
  • 112