Are you talking about C? If so, the static qualifier prevents linking to the symbol from any other compilation unit. If you don't use the static storage class, the symbol implicitly has external linkage. When using gcc, static is equivalent to __attribute__ ((visibility ("hidden"))).
Kevin Barry
Last edited by ta0kira; 01-16-2012 at 11:37 AM.
Reason: fixed __attribute__
|