Cannot create any C++ projects or add code to existing projects

Hi all,

I’m having a really annoying problem with UE4 4.12 in that I can’t create any new C++ projects. I keep getting a error log whenever I try, I have made sure I have all the required software and verified my installation because I somewhere that could possibly fix it but still no luck. Here is the error code anyway:

The project could not be compiled. Would you like to open it in Visual Studio?

Running D:/PROGRAMS/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe Highlands Development Win64 -project="D:/Projects/Highlands/Highlands.uproject" -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE
@progress push 5%
Parsing headers for HighlandsEditor
  Running UnrealHeaderTool "D:\Projects\Highlands\Highlands.uproject" "D:\Projects\Highlands\Intermediate\Build\Win64\HighlandsEditor\Development\HighlandsEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for HighlandsEditor in 5.0611431 seconds
@progress pop
Performing 8 actions (4 in parallel)
[2/8] Resource PCLaunch.rc
[3/8] Resource ModuleVersionResource.rc.inl
PCH.Highlands.h.cpp
D:\PROGRAMS\VC\INCLUDE\stdlib.h(640): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(640): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(641): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(641): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(642): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(642): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(644): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(644): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(646): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(646): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(647): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(647): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(648): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(648): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(649): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(649): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(651): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(651): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(653): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(653): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(655): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(655): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(657): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(657): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(855): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(855): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(855): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(879): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(879): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(879): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(897): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdlib.h(897): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\stdlib.h(897): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\cstdlib(41): error C2039: '_Exit': is not a member of '`global namespace''
D:\PROGRAMS\VC\INCLUDE\cstdlib(41): error C2873: '_Exit': symbol cannot be used in a using-declaration
D:\PROGRAMS\VC\INCLUDE\cstdlib(41): error C2039: 'at_quick_exit': is not a member of '`global namespace''
D:\PROGRAMS\VC\INCLUDE\cstdlib(41): error C2873: 'at_quick_exit': symbol cannot be used in a using-declaration
D:\PROGRAMS\VC\INCLUDE\cstdlib(41): error C2039: 'quick_exit': is not a member of '`global namespace''
D:\PROGRAMS\VC\INCLUDE\cstdlib(41): error C2873: 'quick_exit': symbol cannot be used in a using-declaration
D:\PROGRAMS\VC\INCLUDE\malloc.h(169): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\malloc.h(169): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\malloc.h(255): error C2144: syntax error: 'void' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\malloc.h(255): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\malloc.h(255): warning C4273: '_CRTNOALIAS': inconsistent dll linkage
D:\PROGRAMS\VC\INCLUDE\stdlib.h(657): note: see previous definition of '_CRTNOALIAS'
D:\PROGRAMS\VC\INCLUDE\wchar.h(715): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(715): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(715): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(719): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(719): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(719): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(720): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(720): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(720): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(729): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(729): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(729): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(731): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(731): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(731): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(733): warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX'
D:\PROGRAMS\VC\INCLUDE\wchar.h(733): error C2146: syntax error: missing ';' before identifier '_vsnwprintf'
D:\PROGRAMS\VC\INCLUDE\wchar.h(733): error C2143: syntax error: missing ',' before '*'
D:\PROGRAMS\VC\INCLUDE\wchar.h(733): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(733): error C2199: syntax error: found 'wchar_t (' at global scope (was a declaration intended?)
D:\PROGRAMS\VC\INCLUDE\wchar.h(733): error C2062: type 'wchar_t' unexpected
D:\PROGRAMS\VC\INCLUDE\wchar.h(760): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(760): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(760): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(763): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(763): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(763): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(770): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(770): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(770): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(772): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(772): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(772): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(787): warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX'
D:\PROGRAMS\VC\INCLUDE\wchar.h(787): error C2146: syntax error: missing ';' before identifier '_swprintf_s'
D:\PROGRAMS\VC\INCLUDE\wchar.h(787): error C2143: syntax error: missing ',' before '*'
D:\PROGRAMS\VC\INCLUDE\wchar.h(787): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(787): error C2146: syntax error: missing ';' before identifier 'vswprintf_s'
D:\PROGRAMS\VC\INCLUDE\wchar.h(787): error C2733: 'vswprintf_s': second C linkage of overloaded function not allowed
D:\PROGRAMS\VC\INCLUDE\wchar.h(719): note: see declaration of 'vswprintf_s'
D:\PROGRAMS\VC\INCLUDE\wchar.h(788): warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX'
D:\PROGRAMS\VC\INCLUDE\wchar.h(788): error C2146: syntax error: missing ';' before identifier '__vswprintf_l'
D:\PROGRAMS\VC\INCLUDE\wchar.h(788): error C2143: syntax error: missing ',' before '*'
D:\PROGRAMS\VC\INCLUDE\wchar.h(788): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(788): error C2146: syntax error: missing ';' before identifier '_vswprintf_s_l'
D:\PROGRAMS\VC\INCLUDE\wchar.h(788): error C2733: '_vswprintf_s_l': second C linkage of overloaded function not allowed
D:\PROGRAMS\VC\INCLUDE\wchar.h(763): note: see declaration of '_vswprintf_s_l'
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(40): error C3861: '_crt_va_start': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(42): error C3861: '_crt_va_end': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(64): error C3861: '_crt_va_start': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(66): error C3861: '_crt_va_end': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(88): error C3861: '_crt_va_start': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(89): error C3861: '_vswprintf': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(90): error C3861: '_crt_va_end': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(99): error C3861: '_vswprintf': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(108): error C3861: '_crt_va_start': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(109): error C2660: '__vswprintf_l': function does not take 4 arguments
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(110): error C3861: '_crt_va_end': identifier not found
D:\PROGRAMS\VC\INCLUDE\swprintf.inl(119): error C2660: '__vswprintf_l': function does not take 4 arguments
D:\PROGRAMS\VC\INCLUDE\wchar.h(826): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(826): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(826): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(828): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(828): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(828): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(831): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(831): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(831): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(832): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(832): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(832): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(836): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(836): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(836): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(838): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(838): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(838): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1030): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(1030): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1030): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1039): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(1039): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1039): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1059): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(1059): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1059): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1070): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(1070): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1070): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1079): error C2144: syntax error: 'wchar_t' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1079): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(1079): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1091): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(1091): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1091): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1095): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\wchar.h(1095): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1095): error C2146: syntax error: missing ';' before identifier 'errno_t'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1219): error C2371: 'mbstate_t': redefinition; different basic types
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt.h(475): note: see declaration of 'mbstate_t'
D:\PROGRAMS\VC\INCLUDE\wchar.h(1256): error C2676: binary '==': 'const mbstate_t' does not define this operator or a conversion to a type acceptable to the predefined operator
D:\PROGRAMS\VC\INCLUDE\stdio.h(288): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdio.h(288): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdio.h(288): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\stdio.h(290): error C2144: syntax error: 'int' should be preceded by ';'
D:\PROGRAMS\VC\INCLUDE\stdio.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\PROGRAMS\VC\INCLUDE\stdio.h(290): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
D:\PROGRAMS\VC\INCLUDE\stdlib.h(796): note: see declaration of '_CRTIMP_ALTERNATIVE'
D:\PROGRAMS\VC\INCLUDE\stdio.h(290): fatal error C1003: error count exceeds 100; stopping compilation
ERROR: UBT ERROR: Failed to produce item: D:\Projects\Highlands\Binaries\Win64\UE4Editor-Highlands.dll
Total build time: 13.46 seconds

Any help on what I can do to fix this would be greatly appreciated. :slight_smile:

Hey -

The errors shown appears to be in Visual Studios. Can you check that the C++ programming language and Common Tools for C++ were installed when installing VS? You can do this by going to your Add/Remove programs and choosing to modify your Visual Studio 2015 install.

Yes I have them installed, is there anything else that should be enabled that I could have missed? I’ve double checked through the documentation but I used to have this working ages ago before I had to wipe my windows for some reason. I was using vs 2013 and I don’t remember any extra stages.

After getting this error, does the project get created in its file location? If so, can you open VS and provide a screenshot of your View->Property Pages window? Please ensure that the “Include Directories” section is blank. If you continue to get errors with this set, please try reinstalling Visual Studio 2015.

Yeah it still creates the uproject file and everything, it just tells me to recompile if I try and open it. Heres the screenshot anyway, and the include directories were already empty. I seem to be having this same problem on another aswell where I can’t create the c++ projects there either, which makes me think I’m doing something wrong. :S

As a bit of extra information, are you using the binary engine from the Launcher or did you build the engine from GitHub source code? When you open the project .sln and try to compile, what errors do you get from VS? Also let me know if reinstalling VS has any affect.

I’m using the 4.12 binary from the launcher. If I compile inside of VS I get these errors:
VS Error List]

I’ll have a try and reinstalling later on aswell and I’ll let you know how that goes.

Still no luck unfortunately, I have reinstalled VS 2015… I have less errors than I did before but still any C++ won’t compile for UE4. I can’t seem to find anything conclusive about this clui.dll which is missing apparently.

vs error output 2

EDIT: False alarm apparently, it’s now giving me all the code errors like before.

Can you post your DXDiag for additional information? Also let me know if you have the checkbox for CommonTools checked (at the bottom of the modify page, not CommonTools in the C++ section). Can you also see if you get the same error when creating a 4.11 or 4.13 project.

Yeh I had common tools checked at the bottom plus the same thing happens on 4.11 and 4.13 both of which I only just installed. Here is the DXDiag:

DXDiag

Hey -

Could you provide some additional information about your VS installation? Please save the attached batch file to your desktop, remove the “.txt” extension and run the batch file. This will create an Info.txt file with the required information that you will then need to re-upload as an attachment.

link text

Hmm, it doesn’t appear to be creating anything, it pops up and runs but I get no file at the end of it. It does say access is denied in the box a load of times before it disappears though.

No there isn’t any file, is the batch meant to be run from desktop or a certain directory? I just tried creating a project and it would throw up exceptions upon making it.

Plus the error log which is coming up with the same sort of stuff from before:

[Error List][2]

The file should be created in the same folder location where the batch file is being ran from. Are you running as an administrator for the machine being used? As an additional test, can you create and run a sample Hello World project in Visual Studio outside of the UE4 editor?

If standard application projects are also giving you the same error then it sounds as though the issue still lies with the Visual Studio Installation. Are you using Visual Studio Community, Express, or Pro? Was VS installed to the default directory that was suggested or did you install it to another location? Additionally, can you provide the .xml file that was mentioned in the error message for more information?

I am using community and I have it installed on my D drive which was necessary because I wouldn’t have had enough space on my C drive as it’s tiny, I’m not sure if that is the issue though as I have it installed on my C drive on my laptop and I get the same issue with VS. I can give it a try on C drive anyway as I have just realized there is a load of old VS and C++ installations which could be getting in the way of things that I could clear up.

Activity Log

It is fixed!!

Basically I did a few things, I cleaned the computer of the old C++ redistributables (2008/2009 versions) that I think came packaged with the autodesk suite I had. Plus I moved the installation directory to the C drive aswell like you said, ran Ccleaner just incase and did a fresh reinstall and it has successfully built a few projects now. Because it was throwing up weird code errors can I assume it was something to do with the older versions of C++ interfering?

Thanks for all the help anyways , greatly appreciated. :smiley: