Sounds like an include problem. Gcc and similar compilers report "incomplete type" for structures that are used but not declared.
In this case win is not defined, because the "struct Window" structure has not been declared in entirity. Check you have all the intuition includes required in order to use it.