Visual 2012 project build error

Duplicate of this question: Why am I getting an error when compiling the source UE4 on Win32 mode? - Feedback & Requests - Epic Developer Community Forums

You need to switch the Solution Platform in Visual Studio from Win32 to Win64 when building the Editor.

Hello.

I downloaded the UE4 project from github and managed to get it built using VS 2012 Express(I followed the instructions I found all over the documentation and this answerhub). Then, with that newly built editor, it was possible to generate project files. So I created a basic c++ empty project and tried to build it. Configuration DebugGame Editor, Win32, I get the following errors:

Error 2 error : Failed to produce item: D:\Pobrane\dev\UnrealEngine-4.0\Engine\Intermediate\Build\Win32\UE4Editor\Development\UE4Editor-UnrealEd.lib D:\Projekty\Moje Projekty\UE4\Arkanoid\Intermediate\ProjectFiles\ERROR Arkanoid

Error 1 error C2719: ‘Location’: formal parameter with __declspec(align(‘16’)) won’t be aligned D:\Pobrane\dev\UnrealEngine-4.0\Engine\Source\Editor\UnrealEd\Private\LevelEditorViewport.cpp 112 1 Arkanoid

Error 3 error MSB3073: The command “D:\Pobrane\dev\UnrealEngine-4.0\Engine\Build\BatchFiles\Build.bat ArkanoidEditor Win32 DebugGame “D:\Projekty\Moje Projekty\UE4\Arkanoid\Arkanoid.uproject”” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets 38 5 Arkanoid

I got no clue why it’s not working-if the editor itself compiles sucessfully, then the project should compile as well. The error “C2719: ‘Location’: formal parameter with __declspec(align(‘16’)) won’t be aligned” looks like a clear programmers mistake, but I’m not sure. Any ideas what could be wrong?

Oh, thank you very much! I’m sorry that I duplicated the question-I did not manage to find this one(I was sure it was about the VS2012, so that was my keyword when searching). :slight_smile: