Good day. The essence of my problem set out a simple example.
class MyClass{ static int MyMethod(){ int a; a=1; return(a); }}; void main(){ int a; a = MyClass::MyMethod(); } The last line will have the error "undefined reference to MyClass :: MyMethod ()"
What am I missing?