未解决的外部符号错误泛滥

3

由于我的项目出现了问题,我来这里寻求帮助已经好一段时间了…

这是一个使用DirectX 11运行的视频游戏项目,在Visual Studio Express Windows应用程序下执行。

在遇到一个函数问题后,我想尝试发布版本。但是,当我回到调试版本时,发生了可怕的事情...

每次尝试编译时,我都会遇到无法解决的外部符号错误。我尝试重新编译、清理等操作,但没有成功… 我检查了配置,似乎没有什么变化(至少是我知道的配置,我还不是专家,所以…)

我检查了目录和库,但到这一步为止一切看起来都没问题… 请帮帮我,好吗?

以下是我的错误信息,希望能给您一个大致的了解:

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol _Platform_CoCreateFreeThreadedMarshaler@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\main.obj 1
Error LNK2001 unresolved external symbol ___Platform_CoCreateFreeThreadedMarshaler@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\Texture.obj 1
Error LNK2001 unresolved external symbol ___Platform_CoCreateFreeThreadedMarshaler@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__CoCreateFreeThreadedMarshaler@8.obj) 1
Error LNK2001 unresolved external symbol ___Platform_CoCreateFreeThreadedMarshaler@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\Element.obj 1
Error LNK2001 unresolved external symbol ___Platform_CoCreateFreeThreadedMarshaler@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\GameWindow.obj 1
Error LNK2001 unresolved external symbol ___Platform_CoCreateFreeThreadedMarshaler@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\LevelEditor.obj 1
Error LNK2019 unresolved external symbol ___Platform_WindowsDeleteString@4 referenced in function "void __cdecl __abi_details::__abi_delete_String(class Platform::String ^)" (?__abi_delete_String@__abi_details@@YAXP$AAVString@Platform@@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\Element.obj 1
Error LNK2001 unresolved external symbol ___Platform_WindowsDeleteString@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\GameWindow.obj 1
Error LNK2001 unresolved external symbol ___Platform_WindowsDeleteString@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\LevelEditor.obj 1
Error LNK2001 unresolved external symbol ___Platform_WindowsDeleteString@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsDeleteString@4.obj) 1
Error LNK2019 unresolved external symbol ___Platform_WindowsDuplicateString@8 referenced in function "void __cdecl Platform::Details::DuplicateString(struct HSTRING
*,struct HSTRING__ * *)" (?DuplicateString@Details@Platform@@YAXPAUHSTRING__@@PAPAU3@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\Element.obj 1
Error LNK2001 unresolved external symbol _Platform_WindowsDuplicateString@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\GameWindow.obj 1
Error LNK2001 unresolved external symbol ___Platform_WindowsDuplicateString@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\LevelEditor.obj 1
Error LNK2001 unresolved external symbol ___Platform_WindowsDuplicateString@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsDuplicateString@8.obj) 1
Error LNK2019 unresolved external symbol ___Platform_CoTaskMemAlloc@4 referenced in function "protected: static class Platform::String ^ * __cdecl Platform::WriteOnlyArray::AllocateAndZeroInitialize(unsigned int)" (?AllocateAndZeroInitialize@?$WriteOnlyArray@P$AAVString@Platform@@$00@Platform@@KAPAP$AAVString@2@I@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\Element.obj 1
Error LNK2001 unresolved external symbol ___Platform_CoTaskMemAlloc@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\GameWindow.obj 1
Error LNK2001 unresolved external symbol ___Platform_CoTaskMemAlloc@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__CoTaskMemAlloc@4.obj) 1
Error LNK2019 unresolved external symbol ___Platform_CoTaskMemFree@4 referenced in function "public: static void __cdecl Platform::Details::array_helper::DestructElementsAndFree(class Platform::String ^ *,unsigned int)" (?DestructElementsAndFree@?$array_helper@P$AAVString@Platform@@$0A@@Details@Platform@@SAXPAP$AAVString@3@I@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\Element.obj 1
Error LNK2001 unresolved external symbol ___Platform_CoTaskMemFree@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\GameWindow.obj 1
Error LNK2001 unresolved external symbol ___Platform_CoTaskMemFree@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__CoTaskMemFree@4.obj) 1
Error LNK2019 unresolved external symbol ___Platform_WindowsGetStringRawBuffer@8 referenced in function "public: wchar_t const * __cdecl Platform::String::Data(void)" (?Data@String@Platform@@Q$AAAPB_WXZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\GameWindow.obj 1
Error LNK2001 unresolved external symbol ___Platform_WindowsGetStringRawBuffer@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\LevelEditor.obj 1
Error LNK2001 unresolved external symbol ___Platform_WindowsGetStringRawBuffer@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsGetStringRawBuffer@8.obj) 1
Error LNK2019 unresolved external symbol ___Platform_WindowsGetStringLen@4 referenced in function "public: unsigned int __cdecl Platform::String::Length(void)" (?Length@String@Platform@@Q$AAAIXZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\LevelEditor.obj 1
Error LNK2001 unresolved external symbol ___Platform_WindowsGetStringLen@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsGetStringLen@4.obj) 1
Error LNK2019 unresolved external symbol ___Platform_WindowsCreateStringReference@16 referenced in function "void __cdecl Platform::Details::CreateStringReference(wchar_t const *,unsigned int,struct __Platform_Details_HSTRING_HEADER *,struct HSTRING
* *)" (?CreateStringReference@Details@Platform@@YAXPB_WIPAU__Platform_Details_HSTRING_HEADER@@PAPAUHSTRING__@@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\LevelEditor.obj 1
Error LNK2001 unresolved external symbol _Platform_WindowsCreateStringReference@16 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsCreateStringReference@16.obj) 1
Error LNK2019 unresolved external symbol __imp__ReadFile@20 referenced in function "long __cdecl LoadTextureDataFromFile(wchar_t const *,class std::unique_ptr > &,struct DirectX::DDS_HEADER * *,unsigned char * *,unsigned int *)" (?LoadTextureDataFromFile@@YAJPB_WAAV?$unique_ptr@$$BY0A@EU?$default_delete@$$BY0A@E@std@@@std@@PAPAUDDS_HEADER@DirectX@@PAPAEPAI@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\DirectXTK.lib(DDSTextureLoader.obj) 1
Error LNK2019 unresolved external symbol __imp__CreateFile2@20 referenced in function "long __cdecl LoadTextureDataFromFile(wchar_t const *,class std::unique_ptr > &,struct DirectX::DDS_HEADER * *,unsigned char * *,unsigned int *)" (?LoadTextureDataFromFile@@YAJPB_WAAV?$unique_ptr@$$BY0A@EU?$default_delete@$$BY0A@E@std@@@std@@PAPAUDDS_HEADER@DirectX@@PAPAEPAI@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\DirectXTK.lib(DDSTextureLoader.obj) 1
Error LNK2019 unresolved external symbol __imp__CloseHandle@4 referenced in function "public: void __thiscall DirectX::handle_closer::operator()(void *)" (??Rhandle_closer@DirectX@@QAEXPAX@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\DirectXTK.lib(DDSTextureLoader.obj) 1
Error LNK2001 unresolved external symbol __imp__CloseHandle@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__GetLastError@0 referenced in function "long __cdecl LoadTextureDataFromFile(wchar_t const *,class std::unique_ptr > &,struct DirectX::DDS_HEADER * *,unsigned char * *,unsigned int *)" (?LoadTextureDataFromFile@@YAJPB_WAAV?$unique_ptr@$$BY0A@EU?$default_delete@$$BY0A@E@std@@@std@@PAPAUDDS_HEADER@DirectX@@PAPAEPAI@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\DirectXTK.lib(DDSTextureLoader.obj) 1
Error LNK2001 unresolved external symbol __imp__GetLastError@0 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__GetFileInformationByHandleEx@16 referenced in function "long __cdecl LoadTextureDataFromFile(wchar_t const *,class std::unique_ptr > &,struct DirectX::DDS_HEADER * *,unsigned char * *,unsigned int *)" (?LoadTextureDataFromFile@@YAJPB_WAAV?$unique_ptr@$$BY0A@EU?$default_delete@$$BY0A@E@std@@@std@@PAPAUDDS_HEADER@DirectX@@PAPAEPAI@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\DirectXTK.lib(DDSTextureLoader.obj) 1
Error LNK2019 unresolved external symbol __imp__WideCharToMultiByte@32 referenced in function "long __cdecl DirectX::CreateDDSTextureFromFileEx(struct ID3D11Device *,struct ID3D11DeviceContext *,wchar_t const *,unsigned int,enum D3D11_USAGE,unsigned int,unsigned int,unsigned int,bool,struct ID3D11Resource * *,struct ID3D11ShaderResourceView * *,enum DirectX::DDS_ALPHA_MODE *)" (?CreateDDSTextureFromFileEx@DirectX@@YAJPAUID3D11Device@@PAUID3D11DeviceContext@@PB_WIW4D3D11_USAGE@@III_NPAPAUID3D11Resource@@PAPAUID3D11ShaderResourceView@@PAW4DDS_ALPHA_MODE@1@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\DirectXTK.lib(DDSTextureLoader.obj) 1
Error LNK2001 unresolved external symbol __imp__WideCharToMultiByte@32 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol __imp__DecodePointer@4 referenced in function "bool __cdecl Microsoft::WRL::Details::TerminateMap(class Microsoft::WRL::Details::ModuleBase *,wchar_t const *,bool)" (?TerminateMap@Details@WRL@Microsoft@@YA_NPAVModuleBase@123@PB_W_N@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(init.obj) 1
Error LNK2019 unresolved external symbol __imp__ReleaseSRWLockExclusive@4 referenced in function "public: static void __cdecl Microsoft::WRL::Wrappers::HandleTraits::SRWLockExclusiveTraits::Unlock(struct _RTL_SRWLOCK *)" (?Unlock@SRWLockExclusiveTraits@HandleTraits@Wrappers@WRL@Microsoft@@SAXPAU_RTL_SRWLOCK@@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(init.obj) 1
Error LNK2019 unresolved external symbol __imp__AcquireSRWLockExclusive@4 referenced in function "public: static class Microsoft::WRL::Wrappers::Details::SyncLockT __cdecl Microsoft::WRL::Wrappers::SRWLock::LockExclusive(struct _RTL_SRWLOCK *)" (?LockExclusive@SRWLock@Wrappers@WRL@Microsoft@@SA?AV?$SyncLockT@USRWLockExclusiveTraits@HandleTraits@Wrappers@WRL@Microsoft@@@Details@234@PAU_RTL_SRWLOCK@@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(init.obj) 1
Error LNK2019 unresolved external symbol _SetRestrictedErrorInfo@4 referenced in function "void __cdecl Platform::Details::ReportUnhandledError(class Platform::Exception ^)" (?ReportUnhandledError@Details@Platform@@YAXP$AAVException@2@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(init.obj) 1
Error LNK2019 unresolved external symbol _RoFailFastWithErrorContext@4 referenced in function "void __cdecl Platform::Details::ReportUnhandledError(class Platform::Exception ^)" (?ReportUnhandledError@Details@Platform@@YAXP$AAVException@2@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(init.obj) 1
Error LNK2019 unresolved external symbol _RoReportUnhandledError@4 referenced in function "void __cdecl Platform::Details::ReportUnhandledError(class Platform::Exception ^)" (?ReportUnhandledError@Details@Platform@@YAXP$AAVException@2@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(init.obj) 1
Error LNK2019 unresolved external symbol _WindowsCreateString@12 referenced in function "long __stdcall __winRT::__windowsCreateString(wchar_t const *,int,struct HSTRING
* *)" (?windowsCreateString@__winRT@@YGJPB_WHPAPAUHSTRING@@@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(compiler.obj) 1
Error LNK2001 unresolved external symbol _WindowsCreateString@12 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(climain.obj) 1
Error LNK2001 unresolved external symbol _CoCreateFreeThreadedMarshaler@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(Platform__CoCreateFreeThreadedMarshaler@8.obj) 1
Error LNK2001 unresolved external symbol _WindowsDeleteString@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsDeleteString@4.obj) 1
Error LNK2001 unresolved external symbol _WindowsDeleteString@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(climain.obj) 1
Error LNK2001 unresolved external symbol _WindowsDuplicateString@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsDuplicateString@8.obj) 1
Error LNK2001 unresolved external symbol _WindowsDuplicateString@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(climain.obj) 1
Error LNK2001 unresolved external symbol _CoTaskMemAlloc@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__CoTaskMemAlloc@4.obj) 1
Error LNK2001 unresolved external symbol _CoTaskMemFree@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__CoTaskMemFree@4.obj) 1
Error LNK2001 unresolved external symbol _WindowsGetStringRawBuffer@8 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsGetStringRawBuffer@8.obj) 1
Error LNK2001 unresolved external symbol _WindowsGetStringLen@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsGetStringLen@4.obj) 1
Error LNK2001 unresolved external symbol _WindowsCreateStringReference@16 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(__Platform__WindowsCreateStringReference@16.obj) 1
Error LNK2019 unresolved external symbol __imp__EnterCriticalSection@4 referenced in function __Init_thread_lock Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__LeaveCriticalSection@4 referenced in function __Init_thread_unlock Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__InitializeCriticalSectionEx@12 referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__DeleteCriticalSection@4 referenced in function "void __cdecl __scrt_uninitialize_thread_safe_statics(void)" (?__scrt_uninitialize_thread_safe_statics@@YAXXZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__InitializeConditionVariable@4 referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__WakeAllConditionVariable@4 referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__SleepConditionVariableCS@12 referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__SetEvent@4 referenced in function __Init_thread_notify Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__ResetEvent@4 referenced in function __Init_thread_notify Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__WaitForSingleObjectEx@12 referenced in function __Init_thread_wait Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2001 unresolved external symbol _SleepConditionVariableCS@12 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2001 unresolved external symbol _WakeAllConditionVariable@4 Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__IsDebuggerPresent@0 referenced in function "void __cdecl failwithmessage(void *,int,int,char const *)" (?failwithmessage@@YAXPAXHHPBD@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol __imp__RaiseException@16 referenced in function "int __cdecl DebuggerProbe(unsigned long)" (?DebuggerProbe@@YAHK@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol __imp__MultiByteToWideChar@24 referenced in function "void __cdecl failwithmessage(void *,int,int,char const *)" (?failwithmessage@@YAXPAXHHPBD@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol _IsProcessorFeaturePresent@4 referenced in function ___isa_available_init Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(_cpu_disp_.obj) 1
Error LNK2019 unresolved external symbol __imp__RoInitialize@4 referenced in function ___scrt_initialize_winrt Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(utility_app.obj) 1
Error LNK2019 unresolved external symbol __imp__QueryPerformanceCounter@4 referenced in function ___security_init_cookie Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(gs_support.obj) 1
Error LNK2019 unresolved external symbol __imp__GetCurrentProcessId@0 referenced in function ___security_init_cookie Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(gs_support.obj) 1
Error LNK2019 unresolved external symbol __imp__GetCurrentThreadId@0 referenced in function ___security_init_cookie Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(gs_support.obj) 1
Error LNK2019 unresolved external symbol __imp__GetSystemTimeAsFileTime@4 referenced in function ___security_init_cookie Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(gs_support.obj) 1
Error LNK2019 unresolved external symbol __imp__InitializeSListHead@4 referenced in function "void __cdecl __scrt_initialize_type_info(void)" (?__scrt_initialize_type_info@@YAXXZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(tncleanup.obj) 1
Error LNK2019 unresolved external symbol __imp__HeapAlloc@12 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__HeapFree@12 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__GetProcessHeap@0 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__VirtualQuery@12 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__FreeLibrary@4 referenced in function "struct HINSTANCE
* cdecl GetPdbDllFromInstallPath(void)" (?GetPdbDllFromInstallPath@@YAPAUHINSTANCE@@XZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol imp__GetProcAddress@8 referenced in function "struct HINSTANCE * cdecl GetPdbDllFromInstallPath(void)" (?GetPdbDllFromInstallPath@@YAPAUHINSTANCE@@XZ) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__CoCreateFreeThreadedMarshaler@8 referenced in function "public: long __stdcall __abi_FTMWeakRefData::__abi_QueryInterface(class Platform::Guid &,void * *)" (?__abi_QueryInterface@__abi_FTMWeakRefData@@QAGJAAVGuid@Platform@@PAPAX@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(climain.obj) 1
Error LNK2019 unresolved external symbol __imp__CoTaskMemAlloc@4 referenced in function "protected: static class Platform::String ^ * __cdecl Platform::WriteOnlyArray::AllocateAndZeroInitialize(unsigned int)" (?AllocateAndZeroInitialize@?$WriteOnlyArray@P$AAVString@Platform@@$00@Platform@@KAPAP$AAVString@2@I@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(climain.obj) 1
Error LNK2019 unresolved external symbol __imp__CoTaskMemFree@4 referenced in function "public: static void __cdecl Platform::Details::array_helper::DestructElementsAndFree(class Platform::String ^ *,unsigned int)" (?DestructElementsAndFree@?$array_helper@P$AAVString@Platform@@$0A@@Details@Platform@@SAXPAP$AAVString@3@I@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\vccorlibd.lib(climain.obj) 1
Error LNK1120 60 unresolved externals Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Debug\Game level editor\Game level editor.exe 1


未解决的符号错误通常意味着您需要链接已解析符号的对象或库,或将源文件添加到您的项目中。 - Thomas Matthews
顺便说一句,一个好主意是将错误代码LNK2019输入到您的互联网搜索引擎中。您可以通过包括其他关键字,如“directx”或“c ++”,来缩小搜索范围。 - Thomas Matthews
谢谢您的回复。问题是它之前是可以工作的,而且没有任何重大更改,突然开始产生错误...我试图在网络上查找应该手动添加的库,但有些函数甚至不应该有任何.lib被使用(例如:WindowsDeleteString)。所以即使我链接了所有我能找到的东西,一些错误仍然会存在。 - Drake
可能是重复的问题,参考什么是未定义引用/未解决的外部符号错误,如何解决? - Ivan Aksamentov - Drop
1个回答

1
好的,看起来属性(属性 > 链接器 > 命令行)中的一个选项消失了。与刚创建的项目进行比较后,我注意到“WindowsApp.lib”已经消失了...我将其作为附加选项添加,然后它又可以工作了。
嗯,还是谢谢你尝试帮助我。 :3

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接