S
Scott J. McCaughrin
The following short program compiles fine but fails to link (both on
Borland C++ and GNU g++). In particular, g++ gives this link error:
"undefined reference to `VarArrar::funct'".
It seems as if the static data-member (of type Funct) is regarded as
an external, hence unresolvable by 'ld'. If so, why is a static member
considered an extern, and what is the remedy?
Borland C++ and GNU g++). In particular, g++ gives this link error:
"undefined reference to `VarArrar::funct'".
It seems as if the static data-member (of type Funct) is regarded as
an external, hence unresolvable by 'ld'. If so, why is a static member
considered an extern, and what is the remedy?