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):
- 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
Tidak ada komentar:
Posting Komentar