【问题标题】:flood of unresolved external symbol errors大量未解决的外部符号错误
【发布时间】:2016-07-10 03:43:12
【问题描述】:

我来这里是因为我的项目有一段时间有问题......

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

一个功能出现问题后,我想尝试一下发布版本...但是,返回Debug版本后,发生了可怕的事情...

每次我尝试编译时都会被未解决的外部符号错误淹没。 我没有尝试成功,比如重新编译、清理等...我检查了配置,似乎没有任何改变(至少我知道的配置,我仍然不是专家,所以...)

我检查了目录、库,但目前一切似乎都还好……你能帮帮我吗?

所以你可以了解我的问题,这是我的错误......

严重性代码描述项目文件行抑制状态 错误 LNK2001 无法解析外部符号 _Platform_CoCreateFreeThreadedMarshaler@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\main.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_CoCreateFreeThreadedMarshaler@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\Texture.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_CoCreateFreeThreadedMarshaler@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__CoCreateFreeThreadedMarshaler@8.obj) 1
错误 LNK2001 无法解析外部符号 ___Platform_CoCreateFreeThreadedMarshaler@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\Element.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_CoCreateFreeThreadedMarshaler@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\GameWindow.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_CoCreateFreeThreadedMarshaler@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\LevelEditor.obj 1
错误 LNK2019 未解析的外部符号 ___Platform_WindowsDeleteString@4 在函数“void __cdecl __abi_details::__abi_delete_String(class Platform::String ^)”(?__abi_delete_String@__abi_details@@YAXP$AAVString@Platform@@@Z) 游戏关卡编辑器 C:\ Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\Element.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_WindowsDeleteString@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\GameWindow.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_WindowsDeleteString@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\LevelEditor.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_WindowsDeleteString@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsDeleteString@4.obj) 1
错误 LNK2019 未解析的外部符号 ___Platform_WindowsDuplicateString@8 在函数“void __cdecl Platform::Details::DuplicateString(struct HSTRING
*,struct HSTRING__ * *)”(?DuplicateString@Details@Platform@@YAXPAUHSTRING__@@PAPAU3@ @Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\Element.obj 1
错误 LNK2001 无法解析外部符号 _Platform_WindowsDuplicateString@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\GameWindow.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_WindowsDuplicateString@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\LevelEditor.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_WindowsDuplicateString@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsDuplicateString@8.obj) 1
错误 LNK2019 未解析的外部符号 ___Platform_CoTaskMemAlloc@4 在函数“受保护:静态类 Platform::String ^ * __cdecl Platform::WriteOnlyArray::AllocateAndZeroInitialize(unsigned int)”(?AllocateAndZeroInitialize@?$WriteOnlyArray@P$AAVString@Platform@@ $00@Platform@@KAPAP$AAVString@2@I@Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\Element.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_CoTaskMemAlloc@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\GameWindow.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_CoTaskMemAlloc@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__CoTaskMemAlloc@4.obj) 1
错误 LNK2019 未解析的外部符号 ___Platform_CoTaskMemFree@4 在函数“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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\ Element.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_CoTaskMemFree@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\GameWindow.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_CoTaskMemFree@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__CoTaskMemFree@4.obj) 1
错误 LNK2019 未解析的外部符号 ___Platform_WindowsGetStringRawBuffer@8 在函数“public: wchar_t const * __cdecl Platform::String::Data(void)”(?Data@String@Platform@@Q$AAAPB_WXZ) 游戏关卡编辑器 C:\Users\ Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\GameWindow.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_WindowsGetStringRawBuffer@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\LevelEditor.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_WindowsGetStringRawBuffer@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsGetStringRawBuffer@8.obj) 1
错误 LNK2019 未解析的外部符号 ___Platform_WindowsGetStringLen@4 在函数“public: unsigned int __cdecl Platform::String::Length(void)”(?Length@String@Platform@@Q$AAAIXZ) 中引用 游戏关卡编辑器 C:\Users\Drake \Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\LevelEditor.obj 1
错误 LNK2001 无法解析外部符号 ___Platform_WindowsGetStringLen@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsGetStringLen@4.obj) 1
错误 LNK2019 未解析的外部符号 ___Platform_WindowsCreateStringReference@16 在函数“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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\LevelEditor.obj 1
错误 LNK2001 无法解析外部符号 _Platform_WindowsCreateStringReference@16 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsCreateStringReference@16.obj) 1
错误 LNK2019 未解析的外部符号 __imp__ReadFile@20 在函数“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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\DirectXTK.lib(DDSTextureLoader.obj) 1
错误 LNK2019 未解析的外部符号 __imp__CreateFile2@20 在函数“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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\DirectXTK.lib(DDSTextureLoader.obj) 1
错误 LNK2019 未解析的外部符号 __imp__CloseHandle@4 在函数“public: void __thiscall DirectX::handle_closer::operator()(void *)”中引用 (??Rhandle_closer@DirectX@@QAEXPAX@Z) 游戏关卡编辑器 C:\Users\ Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\DirectXTK.lib(DDSTextureLoader.obj) 1
错误 LNK2001 无法解析外部符号 __imp__CloseHandle@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__GetLastError@0 在函数“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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\DirectXTK.lib(DDSTextureLoader.obj) 1
错误 LNK2001 无法解析外部符号 __imp__GetLastError@0 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(pdblkup.obj) 1
错误 LNK2019 未解析的外部符号 __imp__GetFileInformationByHandleEx@16 在函数“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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\DirectXTK.lib(DDSTextureLoader.obj) 1
错误 LNK2019 未解析的外部符号 __imp__WideCharToMultiByte@32 在函数“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@@PAW4DDS_ALPHA_MODE@1游戏编辑器级别\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\DirectXTK.lib(DDSTextureLoader.obj) 1
错误 LNK2001 无法解析外部符号 __imp__WideCharToMultiByte@32 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(error.obj) 1
函数“bool __cdecl Microsoft::WRL::Details::TerminateMap(class Microsoft::WRL::Details::ModuleBase *,wchar_t const *,bool)”中引用的错误 LNK2019 未解析的外部符号 __imp__DecodePointer@4 (?TerminateMap@Details @WRL@Microsoft@@YA_NPAVModuleBase@123@PB_W_N@Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(init.obj) 1 错误 LNK2019 未解析的外部符号 __imp__ReleaseSRWLockExclusive@4 在函数“public: static void __cdecl Microsoft::WRL::Wrappers::HandleTraits::SRWLockExclusiveTraits::Unlock(struct _RTL_SRWLOCK *)”(?Unlock@SRWLockExclusiveTraits@HandleTraits@Wrappers@WRL @Microsoft@@SAXPAU_RTL_SRWLOCK@@@Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(init.obj) 1
错误 LNK2019 未解析的外部符号 __imp__AcquireSRWLockExclusive@4 在函数“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) 游戏关卡编辑器 C:\Users\Drake \Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(init.obj) 1
错误 LNK2019 未解析的外部符号 _RoFailFastWithErrorContext@4 在函数“void __cdecl Platform::Details::ReportUnhandledError(class Platform::Exception ^)”中引用 (?ReportUnhandledError@Details@Platform@@YAXP$AAVException@2@@Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(init.obj) 1
错误 LNK2019 未解析的外部符号 _WindowsCreateString@12 在函数“long __stdcall __winRT::__windowsCreateString(wchar_t const *,int,struct HSTRING
* *)”(?windowsCreateString@__winRT@@YGJPB_WHPAPAUHSTRING中引用@@@Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(compiler.obj) 1
错误 LNK2001 无法解析外部符号 _WindowsCreateString@12 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(climain.obj) 1
错误 LNK2001 无法解析外部符号 _CoCreateFreeThreadedMarshaler@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\vccorlibd.lib(Platform__CoCreateFreeThreadedMarshaler@8.obj) 1
错误 LNK2001 无法解析外部符号 _WindowsDeleteString@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsDeleteString@4.obj) 1
错误 LNK2001 无法解析外部符号 _WindowsDeleteString@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(climain.obj) 1
错误 LNK2001 无法解析外部符号 _WindowsDuplicateString@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsDuplicateString@8.obj) 1
错误 LNK2001 无法解析外部符号 _WindowsDuplicateString@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(climain.obj) 1
错误 LNK2001 无法解析外部符号 _CoTaskMemAlloc@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__CoTaskMemAlloc@4.obj) 1
错误 LNK2001 无法解析外部符号 _CoTaskMemFree@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__CoTaskMemFree@4.obj) 1
错误 LNK2001 无法解析外部符号 _WindowsGetStringRawBuffer@8 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsGetStringRawBuffer@8.obj) 1
错误 LNK2001 无法解析外部符号 _WindowsGetStringLen@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsGetStringLen@4.obj) 1
错误 LNK2001 无法解析外部符号 _WindowsCreateStringReference@16 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(__Platform__WindowsCreateStringReference@16.obj) 1
错误 LNK2019 未解析的外部符号 __imp__EnterCriticalSection@4 在函数 __Init_thread_lock 中引用游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__LeaveCriticalSection@4 在函数 __Init_thread_unlock 中引用游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__InitializeCriticalSectionEx@12 在函数“int __cdecl __scrt_initialize_thread_safe_statics(void)”中引用 (?__scrt_initialize_thread_safe_statics@@YAHXZ) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__DeleteCriticalSection@4 在函数“void __cdecl __scrt_uninitialize_thread_safe_statics(void)”(?__scrt_uninitialize_thread_safe_statics@@YAXXZ) 中引用 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__InitializeConditionVariable@4 在函数“int __cdecl __scrt_initialize_thread_safe_statics(void)”中引用 (?__scrt_initialize_thread_safe_statics@@YAHXZ) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__WakeAllConditionVariable@4 在函数“int __cdecl __scrt_initialize_thread_safe_statics(void)”(?__scrt_initialize_thread_safe_statics@@YAHXZ) 中引用 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
Error LNK2019 unresolved external symbol __imp__SleepConditionVariableCS@12 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编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__SetEvent@4 在函数 __Init_thread_notify 中引用游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__ResetEvent@4 在函数 __Init_thread_notify 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(thread_safe_statics.obj) 1
中引用 错误 LNK2019 无法解析外部符号 __imp__WaitForSingleObjectEx@12 在函数 __Init_thread_wait 中引用游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2001 无法解析外部符号 _SleepConditionVariableCS@12 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2001 无法解析外部符号 _WakeAllConditionVariable@4 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game 关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(thread_safe_statics.obj) 1
错误 LNK2019 未解析的外部符号 __imp__IsDebuggerPresent@0 在函数“void __cdecl failwithmessage(void *,int,int,char const *)”中引用 (?failwithmessage@@YAXPAXHHPBD@Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol __imp__RaiseException@16 in function "int __cdecl DebuggerProbe(unsigned long)" (?DebuggerProbe@@YAHK@Z) Game level editor C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor \游戏关卡编辑器\MSVCRTD.lib(error.obj) 1
错误 LNK2019 未解析的外部符号 __imp__MultiByteToWideChar@24 在函数“void __cdecl failwithmessage(void *,int,int,char const *)”中引用 (?failwithmessage@@YAXPAXHHPBD@Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(error.obj) 1
错误 LNK2019 无法解析外部符号 _IsProcessorFeaturePresent@4 在函数 ___isa_available_init 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(_cpu_disp_.obj) 1
中引用 错误 LNK2019 未解析的外部符号 __imp__RoInitialize@4 在函数 ___scrt_initialize_winrt 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(utility_app.obj) 1
中引用 错误 LNK2019 未解析的外部符号 __imp__QueryPerformanceCounter@4 在函数 __security_init_cookie 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(gs_support.obj) 1
中引用 错误 LNK2019 未解析的外部符号 __imp__GetCurrentProcessId@0 在函数 ___security_init_cookie 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(gs_support.obj) 1
中引用 错误 LNK2019 未解析的外部符号 __imp__GetCurrentThreadId@0 在函数 ___security_init_cookie 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\Game level editor\Game level editor\MSVCRTD.lib(gs_support.obj) 1
中引用 错误 LNK2019 未解析的外部符号 __imp__GetSystemTimeAsFileTime@4 在函数 ___security_init_cookie 游戏关卡编辑器 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编辑器\MSVCRTD.lib(tncleanup.obj) 1
Error LNK2019 unresolved external symbol __imp__HeapAlloc@12 in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) 游戏关卡编辑器 C: \Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__HeapFree@12 in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) 游戏关卡编辑器 C: \Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(pdblkup.obj) 1
错误 LNK2019 未解析的外部符号 __imp__GetProcessHeap@0 在函数“int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)”(?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) 中引用 游戏关卡编辑器 C: \Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__VirtualQuery@12 in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) 游戏关卡编辑器 C: \Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __imp__FreeLibrary@4 referenced in function "struct HINSTANCE
* cdecl GetPdbDllFromInstallPath(void)" (?GetPdbDllFromInstallPath@@YAPAUHINSTANCE@@XZ) 游戏关卡编辑器 C:\Users\ Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol imp__GetProcAddress@8 referenced in function "struct HINSTANCE * cdecl GetPdbDllFromInstallPath(void)" (?GetPdbDllFromInstallPath@@YAPAUHINSTANCE@@XZ) 游戏关卡编辑器 C: \Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\MSVCRTD.lib(pdblkup.obj) 1
错误 LNK2019 未解析的外部符号 __imp__CoCreateFreeThreadedMarshaler@8 在函数“public: long __stdcall __abi_FTMWeakRefData::__abi_QueryInterface(class Platform::Guid &,void * *)”(?__abi_QueryInterface@__abi_FTMWeakRefData@@QAGJAAVGuid@Platform@@PAPAX@Z) 游戏中引用关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(climain.obj) 1
错误 LNK2019 未解析的外部符号 __imp__CoTaskMemAlloc@4 在函数“受保护:静态类 Platform::String ^ * __cdecl Platform::WriteOnlyArray::AllocateAndZeroInitialize(unsigned int)”(?AllocateAndZeroInitialize@?$WriteOnlyArray@P$AAVString@Platform@@ $00@Platform@@KAPAP$AAVString@2@I@Z) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\vccorlibd.lib(climain.obj) 1
错误 LNK2019 未解析的外部符号 __imp__CoTaskMemFree@4 在函数“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) 游戏关卡编辑器 C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏关卡编辑器\游戏关卡编辑器\ 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

【问题讨论】:

  • 未解析符号错误通常意味着您需要链接对象或已解析符号的库或将源文件添加到项目中。
  • 顺便说一句,一个好主意是在您的互联网搜索引擎中输入错误代码 LNK2019。您可以通过包含“directx”或“c++”等其他关键字来缩小搜索范围。
  • 感谢您的回复。问题是它以前工作过,没有任何重大变化,突然开始产生错误......我试图在网上检查我应该手动添加的库,但有些功能甚至不应该有任何要使用的 .lib(例如:WindowsDeleteString)因此,即使我尽可能链接所有内容,一些错误仍然存​​在。

标签: c++ visual-studio visual-studio-2015 directx directx-11


【解决方案1】:

好吧,似乎一个选项从属性中消失了(属性 > 链接器 > 命令行)。与刚刚创建的项目进行比较后,我注意到“WindowsApp.lib”已经消失...我将其作为附加选项添加,它又可以工作了。

好吧,仍然感谢您尝试帮助我。 :3

【讨论】:

    猜你喜欢
    • 2011-09-03
    • 2010-11-20
    • 2011-10-21
    • 2012-10-21
    • 2014-05-12
    • 2014-05-14
    • 2021-10-30
    • 1970-01-01
    相关资源
    最近更新 更多