error C2129: static function ‘void func(int,char *)’ declared but not defined
I read that:
A static function must be defined within file scope. If the function is defined in another file, it must be declared extern.
Does file scope mean it must be defined in either the C++ or .h, or just within the .h file its declared in?
C++ compiler doesnot see the .h files, the content of the file will be placed into the cpp file by the pre-processor itself. Here the file scope would be that function should be in the cpp file.