Updating Project from 4.7 to 4.8

Anybody else get an immense amount of “error C2007: #define syntax” errors when updating from 4.7 to 4.8? I have been trying to figure this out all night. They pop up in my xx.generate.h files, which is causing errors all over the code base. The project build without any errors/warnings on 4.7, but does not play well when trying to update. I have tried letting UE upgrade it, doing it manually with the “Switch Unreal Engine Version…” generator, then trying to build in VS. I have also tried letting UE create a copy before upgrading it (which won’t make a difference I know, was worth a try though). If anybody could shed some light on this, I would appreciate it greatly. Probably me overlooking something.

Thank you in advance.

Can you describe your exact steps to upgrade your project, starting clean?

Meanwhile, I’ll suggest you to try this:

  • Backup everything first
  • Open Epic Games Launcher
  • Click on the Arrow next to the Launch Unreal Engine 4.x.x button.
  • Select Unreal Engine 4.8.1
  • Go to the directory where your uproject is
  • Right Click your uproject file and select “Switch Unreal Engine Version…”
  • Right click your uproject file and select “Generate Visual Studio Project Files”
  • Open your SLN file.
  • Make sure your VS2013 has Update 4 installed (check on About box)
  • Click on Build menu, select Clean Solution
  • Click on Build Menu->Build Solution

Please, report if you had success :slight_smile:

Thank you for the reply. Unfortunately, that did not fix the issue. I am still being spammed with the error.
I had tried those same exact steps to update, I have tried to let UE do the updating for me as well. I have cloned the game, then tried to let UE handle the update in-place, as well as letting it create a copy and try to update that. The log from the update process is the exact same as what VS spits out at me.
It is kinda perplexing that it builds without even a warning in 4.7, but it DIAF when trying to get it up to 4.8. It almost seems like when generating files for 4.8, my generated headers are getting corrupted.