Download

help, build a basic code project failed

help , i got a lot of problems when build a project

version:
UE 4.8
visual studio express 2013 with4

1>------ Rebuild All started: Project: project_01, Configuration: Development_Game x64 ------
1> Cleaning project_01 Binaries…
1>EXEC : GenerateProjectFiles error : A valid version of Visual Studio does not appear to be installed.

1> Performing 5 actions (2 in parallel)
1> PCH.project_01.h.cpp
1>D:\UE\Epic Games\4.8\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5): fatal error C1083: 无法打开包括文件: “new”: No such file or directory
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: D:\ue_projects\project_01\Binaries\Win64\project_01.exe
1> Total build time: 4.77 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(43,5): error MSB3075: The command ““D:\UE\Epic Games\4.8\Engine\Build\BatchFiles\Rebuild.bat” project_01 Win64 Development “D:\ue_projects\project_01\project_01.uproject” -rocket” exited with code 5. Please verify that you have sufficient rights to run this command.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Which express version exactly do you have installed?

Whatever it is Id recommend Visual Studio 2013 Community Edition if the license fits you. Its freely available too and complete.

visual studio express 2013 for windows desktop
thanks, I will be try Community Edition

ps: not working…:frowning:

ps:

I got it

Executable Directories, Include Directories, Library Directories,
change to <inherit from parent or project defaults>

I had the same problem with VS 2013 Update 4. The solution above resolved

To open the Property Pages dialog box for a Visual Studio project, on the Project menu, click Properties.

this hasnt worked for me , I am using vs 2015 and I get this kind of error
1>------ Build started: Project: BuildingEscape, Configuration: Development_Editor x64 ------
1> Compiling game modules for hot reload
1> Performing 1 actions (2 in parallel)
1> [1/1] Link UE4Editor-BuildingEscape-8373.dll
1> Creating library D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BuildingEscape-8373.suppressed.lib and object D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BuildingEscape-8373.suppressed.exp
1>Door2.cpp.obj : error LNK2019: unresolved external symbol “private: static class UClass * __cdecl UDoor2::GetPrivateStaticClass(wchar_t const *)” (?GetPrivateStaticClass@UDoor2@@CAPEAVUClass@@PEB_W@Z) referenced in function “public: static void * __cdecl UDoor2::operator new(unsigned __int64,class UObject *,class FName,enum EObjectFlags)” (??2UDoor2@@SAPEAX_KPEAVUObject@@VFName@@W4EObjectFlags@@@Z)
1>Door2.cpp.obj : error LNK2019: unresolved external symbol “public: __cdecl UDoor2::UDoor2(class FVTableHelper &)” (??0UDoor2@@QEAA@AEAVFVTableHelper@@@Z) referenced in function “public: static class UObject * __cdecl UDoor2::__VTableCtorCaller(class FVTableHelper &)” (?__VTableCtorCaller@UDoor2@@SAPEAVUObject@@AEAVFVTableHelper@@@Z)
1>D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Binaries\Win64\UE4Editor-BuildingEscape-8373.dll : fatal error LNK1120: 2 unresolved externals
1>ERROR : UBT error : Failed to produce item: D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Binaries\Win64\UE4Editor-BuildingEscape-8373.dll
1> Total build time: 3.14 seconds (Local executor: 0.00 seconds)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ““D:\Unreal Engine\Engine\UE_4.15\Engine\Build\BatchFiles\Build.bat” BuildingEscapeEditor Win64 Development “D:\Unreal Projects\03_BuildingEscape\BuildingEscape\BuildingEscape.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

please help me :smiley:

Please don’t necro a 2 year old post. A lot of this info is outdated and can cause issues (no one should be on 2013 now).

With regard to your issue, are you compiling things outside of the editor? Or through Hot reload? That code looks like simple boilerplate code, so I imagine hot reload is just failing and you need to manually compile things yourself.

Not using 2k13 , i`m on 2k15 ;d.
that is what i get when i compile in visual studio ,

and i get this when i compile in unreal :
CompilerResultsLog:Error: Error Door2.cpp.obj : error LNK2019: unresolved external symbol “private: static class UClass * __cdecl UDoor2::GetPrivateStaticClass(wchar_t const *)” (?GetPrivateStaticClass@UDoor2@@CAPEAVUClass@@PEB_W@Z) referenced in function “public: static void * __cdecl UDoor2::operator new(unsigned __int64,class UObject *,class FName,enum EO
bjectFlags)” (??2UDoor2@@SAPEAX_KPEAVUObject@@VFName@@W4EObjectFlags@@@Z)
CompilerResultsLog:Error: Error Door2.cpp.obj : error LNK2019: unresolved external symbol “public: __cdecl UDoor2::UDoor2(class FVTableHelper &)” (??0UDoor2@@QEAA@AEAVFVTableHelper@@@Z) referenced in function “public: static class UObject * __cdecl UDoor2::__VTableCtorCaller(class FVTableHelper &)” (?__VTableCtorCaller@UDoor2@@SAPEAVUObject@@AEAVFVTableHelpe
r@@@Z)
CompilerResultsLog:Error: Error D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Binaries\Win64\UE4Editor-BuildingEscape-8211.dll : fatal error LNK1120: 2 unresolved externals

Post the error you’re getting in Visual Studio, otherwise simply avoid compiling through Unreal - Hot Reload rarely works, especially if you are adding new classes.

**
this is what I get when I compile in visual studio 2015:**

1>------ Build started: Project: BuildingEscape, Configuration: Development_Editor x64 ------
1> Compiling game modules for hot reload
1> Performing 1 actions (2 in parallel)
1> [1/1] Link UE4Editor-BuildingEscape-8373.dll
1> Creating library D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BuildingEscape-8373.suppressed.lib and object D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BuildingEscape-8373.suppressed.exp
1>Door2.cpp.obj : error LNK2019: unresolved external symbol “private: static class UClass * __cdecl UDoor2::GetPrivateStaticClass(wchar_t const *)” (?GetPrivateStaticClass@UDoor2@@CAPEAVUClass@@PEB_W@Z) referenced in function “public: static void * __cdecl UDoor2:perator new(unsigned __int64,class UObject *,class FName,enum EObjectFlags)” (??2UDoor2@@SAPEAX_KPEAVUObject@@VFName@@W4EObjectFlags@@@Z)
1>Door2.cpp.obj : error LNK2019: unresolved external symbol “public: __cdecl UDoor2::UDoor2(class FVTableHelper &)” (??0UDoor2@@QEAA@AEAVFVTableHelper@@@Z) referenced in function “public: static class UObject * __cdecl UDoor2::__VTableCtorCaller(class FVTableHelper &)” (?__VTableCtorCaller@UDoor2@@SAPEAVUObject@@AEAVFVTableHelper@@@Z)
1>D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Binaries\Win64\UE4Editor-BuildingEscape-8373.dll : fatal error LNK1120: 2 unresolved externals
1>ERROR : UBT error : Failed to produce item: D:\Unreal Projects\03_BuildingEscape\BuildingEscape\Binaries\Win64\UE4Editor-BuildingEscape-8373.dll
1> Total build time: 3.14 seconds (Local executor: 0.00 seconds)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ““D:\Unreal Engine\Engine\UE_4.15\Engine\Build\BatchFiles\Build.bat” BuildingEscapeEditor Win64 Development “D:\Unreal Projects\03_BuildingEscape\BuildingEscape\BuildingEscape.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I get errors when I compile in both Unreal and VS 2015… and I dont understand why…

did you try a clean then build

UE4Editor-BuildingEscape-8373.dll looks like a Hot reload name, but regardless, try what OptimisticMonkey said and do a clean build from with Visual Studio. You just have some out of date autogenerated header somewhere that needs to be nuked and regenerated.