Error RC2247 SYMBOL name too long when opening .rc file in VS

Get error RC2247 SYMBOL name too long when opening .rc file in VS of ShooterGame project from marketplace. Few days ago i was opening the same project files in VS and all worked fine. Error still happen on fresh install of UE 4.4.3

Error also point to file d:\ue4\engine\unreal engine\4.4\engine\source\runtime\launch\resources\version.h(0)

when i comment line

#include “Runtime/Launch/Resources/Version.h”

in .rc file error change to undefined ENGINE_MAJOR_VERSION, i will try dig deeper into “Runtime/Launch/Resources/Version.h” and search for exact line causing first error

Found it

#define ENGINE_VERSION_STRING
ENGINE_VERSION_STRINGIFY(ENGINE_MAJOR_VERSION)
ENGINE_VERSION_TEXT(“.”)
ENGINE_VERSION_STRINGIFY(ENGINE_MINOR_VERSION)
ENGINE_VERSION_TEXT(“.”)
ENGINE_VERSION_STRINGIFY(ENGINE_PATCH_VERSION)
ENGINE_VERSION_TEXT(“-”)
ENGINE_VERSION_STRINGIFY(BUILT_FROM_CHANGELIST)
ENGINE_VERSION_TEXT(“+”)
ENGINE_VERSION_TEXT(BRANCH_NAME)

this is too long and cause .rc file error

in file …Epic Games\4.4\Engine\Source\Runtime\Launch\Resources\Version.h

just cut it to something like

#define ENGINE_VERSION_STRING “ENGINE_VERSION_STRING”

as temporal solution, i’ll ask support for fix

bump

I just encountered this wonderful bug which appears to be the way in which VS itself processes the .rc file after ENGINE_VERSION_STRING is defined, not anything to do with the .rc file. I’ve tried your solution above as well as commenting out certain portions of that definition with no luck :frowning: This didn’t happen to me until I installed the Windows Management Framework 3.0 yesterday for development work in unrelated stuff. Highly annoying but was wondering if anyone found a way to bypass this to satisfy Visual Studio and UE4. I’ve even uninstalled the Windows Management Framework 3.0 but this didn’t resolve it. I’m tempted to roll back my system to before installing this to see if it helps.

Any help would be appreciated. Cheers!

i can try help you, but i need to know few things:

  1. your UE4 version
  2. exact error with paths
  3. your VS version
  4. compile/package settings
  5. if possible - copy of project you try compile/package with that error

probably i don’t have windows managment framework 3, only these Oops!