Download

Sudden compilation errors

Hello

My project was running fine. I opened the editor through VS2013 using Debug>Start New Instance. In the content browser I added a C++ Level Class called MyLevel. I closed the editor and reloaded the project as prompted and now I cannot build.

I have tried removing the level class and cleaning and resetting and other random stuff. I have tried removing substance and also putting it in my project plugins folder.

Any thoughts?

These are my errors:
IntelliSense: identifier “char16_t” is undefined
IntelliSense: identifier “char16_t” is undefined
IntelliSense: identifier “char32_t” is undefined
IntelliSense: identifier “char32_t” is undefined
IntelliSense: identifier “char16_t” is undefined
IntelliSense: identifier “char32_t” is undefined
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
IntelliSense: “DWORD” is ambiguous
error LNK1181: cannot open input file ‘C:\Program Files\Epic Games\4.9Source\UnrealEngine\Engine\Plugins\Marketplace\Substance\Source\SubstanceCore/lib/win32-msvc2012-64/release_md/Substance.lib’
error LNK2019: unresolved external symbol “__declspec(dllimport) public: __cdecl FRenderCommandFence::FRenderCommandFence(void)” (_imp??0FRenderCommandFence@@QEAA@XZ) referenced in function “public: __cdecl ULevel::ULevel(class FVTableHelper &)” (??0ULevel@@QEAA@AEAVFVTableHelper@@@Z)
error LNK2019: unresolved external symbol “__declspec(dllimport) public: __cdecl FRenderCommandFence::~FRenderCommandFence(void)” (_imp??1FRenderCommandFence@@QEAA@XZ) referenced in function “int public: __cdecl ULevel::ULevel(class FVTableHelper &)'::1’::dtor$9” (?dtor$9@?0???0ULevel@@QEAA@AEAVFVTableHelper@@@Z@4HA)
error LNK2019: unresolved external symbol “public: __cdecl ULevel::ULevel(class FObjectInitializer const &)” (??0ULevel@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function “void __cdecl InternalConstructor<class UMyLevel>(class FObjectInitializer const &)” (??$InternalConstructor@VUMyLevel@@@@YAXAEBVFObjectInitializer@@@Z)
error LNK2019: unresolved external symbol “public: virtual __cdecl ULevel::~ULevel(void)” (??1ULevel@@UEAA@XZ) referenced in function “public: virtual __cdecl UMyLevel::~UMyLevel(void)” (??1UMyLevel@@UEAA@XZ)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::Serialize(class FArchive &)” (?Serialize@ULevel@@UEAAXAEAVFArchive@@@Z)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::BeginDestroy(void)” (?BeginDestroy@ULevel@@UEAAXXZ)
error LNK2001: unresolved external symbol “public: virtual bool __cdecl ULevel::IsReadyForFinishDestroy(void)” (?IsReadyForFinishDestroy@ULevel@@UEAA_NXZ)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::FinishDestroy(void)” (?FinishDestroy@ULevel@@UEAAXXZ)
error LNK2001: unresolved external symbol "public: virtual class UWorld * __cdecl ULevel::GetWorld(void)const " (?GetWorld@ULevel@@UEBAPEAVUWorld@@XZ)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::PreEditUndo(void)” (?PreEditUndo@ULevel@@UEAAXXZ)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::PostEditUndo(void)” (?PostEditUndo@ULevel@@UEAAXXZ)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::PostLoad(void)” (?PostLoad@ULevel@@UEAAXXZ)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::PreSave(void)” (?PreSave@ULevel@@UEAAXXZ)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::PostDuplicate(bool)” (?PostDuplicate@ULevel@@UEAAX_N@Z)
error LNK2019: unresolved external symbol “public: static void __cdecl ULevel::AddReferencedObjects(class UObject *,class FReferenceCollector &)” (?AddReferencedObjects@ULevel@@SAXPEAVUObject@@AEAVFReferenceCollector@@@Z) referenced in function “void __cdecl GetPrivateStaticClassBody<class UMyLevel>(wchar_t const *,wchar_t const ,class UClass * &,void (__cdecl)(void))” (??$GetPrivateStaticClassBody@VUMyLevel@@@@YAXPEB_W0AEAPEAVUClass@@P6AXXZ@Z)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::AddAssetUserData(class UAssetUserData *)” (?AddAssetUserData@ULevel@@UEAAXPEAVUAssetUserData@@@Z)
error LNK2001: unresolved external symbol “public: virtual void __cdecl ULevel::RemoveUserDataOfClass(class TSubclassOf<class UAssetUserData>)” (?RemoveUserDataOfClass@ULevel@@UEAAXV?$TSubclassOf@VUAssetUserData@@@@@Z)
error LNK2001: unresolved external symbol “public: virtual class UAssetUserData * __cdecl ULevel::GetAssetUserDataOfClass(class TSubclassOf<class UAssetUserData>)” (?GetAssetUserDataOfClass@ULevel@@UEAAPEAVUAssetUserData@@V?$TSubclassOf@VUAssetUserData@@@@@Z)
error LNK2001: unresolved external symbol “private: static int FPrecomputedVisibilityHandler::NextId” (?NextId@FPrecomputedVisibilityHandler@@0HA)
error LNK1120: 19 unresolved externals
error : Failed to produce item: C:\Program Files\Epic Games\4.9Source\UnrealEngine\Engine\Plugins\Marketplace\Substance\Binaries\Win64\UE4Editor-SubstanceCore.dll
error MSB3073: The command ““C:\Program Files\Epic Games\4.9Source\UnrealEngine\Engine\Build\BatchFiles\Build.bat” LittleRockets_CPPEditor Win64 Development “C:\Users\Justin\Documents\Unreal Projects\LittleRockets_CPP\LittleRockets_CPP.uproject” -waitmutex” exited with code -1.

Which Engine version are u using and is it the installer or source version.

U can try right click your project and choose “select Engine version” and “generate visual studio solution”

It seems the paths to the SDK are incorrect somehow

I’m running from source and I tried rebuilding the project files. I also tried to rebuild the engine but I’m getting pclaunch.rc.res is corrupt errors for that now. What happened to everything?!

This isn’t happening on the other projects and I am using a different engine install for them. I’m going to try and change the engine to a non source one.

I got it to work. I think I wasn’t deleting my Binaries and Source Files and Intermediate folder at the same time so the level class had some reference and for some reason it was breaking everything else. Very odd, I need more level class knowledge.