For me it was not related to the file specified in the error message but it has to do with the file that was being compiled one line above in Build Output in Visual Studio.
Turned out that I had some left over includes that could not be resolved after separating file into different module. After fixing those includes it compiled without errors.