Unresolved external symbol on static class members

If you are using C++ 17 you can just use the inline specifier (see https://stackoverflow.com/a/11711082/55721) If using older versions of the C++ standard, you must add the definitions to match your declarations of X and Y unsigned char test::X; unsigned char test::Y; somewhere. You might want to also initialize a static member unsigned char test::X … Read more