I can't find a definitive answer on the proper use of "static" for declaring a variable.
I have a bool called get_data. I use it in a procedure that is declared as a "static void function_name". I tried to declare get_data as a regular bool, however I recieved a compiler error "illegal reference to a data member in a static function". I then declared get_data as static bool to fix the compiler error.
I need help in understanding what the static does.
Another question is: I set get_data in the static function, then I pass it through an ethernet packet to another computer. Will get_data retain it's value when it gets there?
EDIT:
When I link I get the following error:
unresolved external symbol "public: static bool get_data"
Thanks in advance!
JK