大量未解决的外部符号错误

flood of unresolved external symbol errors

本文关键字:符号 错误 外部 未解决      更新时间:2023-10-16

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

这是一个在Visual studio express Windows应用程序下运行DirectX 11的视频游戏项目。

在一个函数出现问题后,我想尝试一下发布版本。。。然而,在返回调试版本后,发生了一些可怕的事情。。。

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

我检查了目录和库,但这一点上的一切似乎都很好…你能帮我吗?

所以你可以了解我的问题,以下是我的错误。。。

严重性代码描述项目文件行禁止显示状态错误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\游戏级编辑器\游戏级编辑器\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_deleteString(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\游戏级编辑器\游戏级编辑器\LevelEditor.obj 1
错误LNK2001未解析外部符号___Platform_WindowsDeleteString@4游戏级编辑器C:\Users\Drake\Documents\Visual Studio 2015\Projects\游戏级编辑器\游戏级编辑器\vccorlibd.lib(__Platform__WindowsDeleteString@4.obj)1
错误LNK2019未解析的外部符号___Platform_WindowsDuplicateString@8在函数"void __cdecl Platform::Details::DuplicateString(struct-HTSRING
*,struct-HSTRING__**)"中引用(?DuplicateString@Details@平台@@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\游戏级编辑器\游戏级编辑器\vccorlibd.lib(__Platform__WindowsDuplicateString@8.obj)1
错误LNK2019未解析的外部符号___Platform_CoTaskMemAlloc@4在函数"protected:static class Platform::String^*__cdecl Platform::WriteOnlyArray::AllocateAndZeroInitialize(unsigned int)"中引用(?AllocateAndZeroInitialize@$WriteOnlyArray@P$AAVString@Platform@@$00@Platform@@卡普$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\游戏级编辑器\游戏级编辑器\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)"中引用(?DestructElement AndFree@$array_helper@P$AAVString@Platform@@0美元@@Details@Platform@@萨克斯$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\游戏级编辑器\游戏级

好吧,似乎有一个选项从属性中消失了(属性>链接器>命令行)。在与刚创建的项目进行比较后,我注意到"WindowsApp.lib"已经消失了。。。我添加了它作为一个附加选项,它再次起作用。

好吧,还是谢谢你帮我

相关文章: