Download

Version.h Error

I get the error: “Version.h(35): fatal error RC1004: unexpected end of file found”.
I use VS2013 Professional and UE 4.7.3.
What can I do?

Version.h:


// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.

#pragma once

#define ENGINE_MAJOR_VERSION	4
#define ENGINE_MINOR_VERSION	7
#define ENGINE_PATCH_VERSION	3

#define ENGINE_VERSION 2479750

#define ENGINE_IS_LICENSEE_VERSION 0

#define BUILT_FROM_CHANGELIST 2479750
#define BRANCH_NAME "++depot+UE4-Releases+4.7"

#define EPIC_COMPANY_NAME  "Epic Games, Inc."
#define EPIC_COPYRIGHT_STRING "Copyright 1998-2015 Epic Games, Inc. All Rights Reserved."
#define EPIC_PRODUCT_NAME "Unreal Engine"
#define EPIC_PRODUCT_IDENTIFIER "UnrealEngine"

#define ENGINE_VERSION_TEXT_2(x) L ## x
#define ENGINE_VERSION_TEXT(x) ENGINE_VERSION_TEXT_2(x)
#define ENGINE_VERSION_STRINGIFY_2(x) ENGINE_VERSION_TEXT(#x)
#define ENGINE_VERSION_STRINGIFY(x) ENGINE_VERSION_STRINGIFY_2(x)

#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)

That’s weird. I compared it against my own version of that file and it’s pretty much the same.

I used to get these errors in university for some C++ header files on some linux compilers and the solution was to put a newline character at the end of the header file. Give that a try?

Otherwise, you may be looking at having to redownload the full engine source code

Thanks for the tip.
I just added a blank line at the end.
Now it works :slight_smile: