YAAUEETTHTF: Yet Another Annoying Unreal Engine Error That Took Hours To Fix

Advertisemen

A few weeks back I did a fresh install of Windows. Last night I wanted to work on my game and prep some stuff for Ludum Dare. So I download UE4 and Visual Studio then pull from my Git repo.

Go to open the project and naturally need to build binaries and naturally it fails. So I look at the logs and there are errors in every single on of my C++ files, the first error being (in one of the generated header files):

  1. error C2007: #define-Syntax

And the others were very similar errors almost like it struggled to understand basic C++ keywords, after four hours involving various attempts from regenerating the VS project to reinstalling VS itself (also during this time I did confirm that a template C++ project in UE4 did compile correctly) I found the solution on UE Answers!

The Git repo was titled '99th-street', so pulling it created a folder for the project root called '99th-street'. Turns out, if the source files are contained in a directory path where any directories in this path start with a number then it doesn't compile. Changing the directory name to 'Street' fixed everything almost miraculously.

Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Game Engine Tutorial