EDIT: . .
, . , , .
" Dependency Walker.
( -), Windows ( EXE, DLL) , /, DLL. , , , , MSVC. ( , .)
( ). .
Linux Windows
SHR , . .
Linux . , Windows , .
GCC Windows. . GCC Wiki.
, Linux Windows. , , , , . , ( Windows) . __declspec .
?
Windows. / __declspec. . (, , - #define , GCC Wiki. )
, . . , :
class __declspec(dllexport) Counter { };
/ , /.
!
, ? , GCC MSVC -.
( Dependency Walker), . .
MSVC 2013 Express Edition 5. GCC MinGW distro nuwen.net, 13.0.
MSVC . (, ). . , static, (!).
GCC, , . . , .
/
, GCC . static .
, , GCC . GCC , . , ( ) . GCC.
MSVC . , , .
, , MSVC
static, ( ),
static. (N3337, ++ 11) 7.1.2 ([dcl.fct.spec]) 4 , :
(...) . (...)
, . MSVC ( : ), .
. , getCount / .
, -, , GCC MSVC. , , MSVC , , GCC.
. , GCC MSVC.
static. ( , static class) . .
, ( ), / static. , .
MSVC-
MSVC .
/, ( ) .
, GCC MSVC Windows . , .
() Linux Windows, (GCC) .
, : GCC Linux, GCC Windows MSVC Windows. comment.
, /. . Windows ( ) ( , ).
, . . , ( ). ( ), , . , . , .
GCC Wiki. , ( ) Linux, ( ) . , Windows, .