I wasted a few hours because of this…
How to reproduce:
- Create a c++ project using UE4. e.g. MyProject
- Close the project
- Rename the project to something like 1MyProject
- Generate visual studio project files
- Open .sln file and try to build.
You get errors saying
“expected an identifier” in these lines:
#define 1MyProject_Source_MyProject_MyProjectGameModeBase_h_14_RPC_WRAPPERS....
:
Obviously, #define fails because #define cannot define when the argument starts with a number.