大量未解决的外部符号错误
flood of unresolved external symbol errors
我来这里是因为我的项目有一段时间有问题。。。
这是一个在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"已经消失了。。。我添加了它作为一个附加选项,它再次起作用。
好吧,还是谢谢你帮我
- 在C++中使用内联方法时出现未定义的符号错误
- 当 lib 已添加到其他依赖项时,如何在 VS 中调试未解析的外部符号错误
- 函数指针给我"重新声明为不同类型的符号"错误
- "byte":使用Crypto++和Windows SDK时出现不明确的符号错误
- 函数路径追加上未解决的外部符号错误
- 作为成员的静态类模板实例会导致未解析的外部符号错误
- C++ XCODE ld:找不到体系结构x86_64 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -
- 共享库中使用"使用命名空间"定义的符号错误
- 在FreesWitch中使用AWS C SDK加载模块时未定义的符号错误
- 在 Mac 上C++编译代码时处理“dyld:惰性符号绑定失败:找不到符号”错误
- C++编译错误LNK2019:未解决的外部符号错误
- VTK / ITK/ QT - 未解决的外部符号错误 (LNK2001)
- QT创建者:简单程序未解决的外部符号和外部符号错误
- C++编译错误:ld:找不到体系结构x86_64 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v
- 标准::字符串::空的未定义符号错误;Mac OS High Sierra 上的 c++ 标准方法链接错误
- ld:找不到体系结构x86_64 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
- 由于使用未签名的INT,因此在Variadic模板C 上未解决的外部符号错误
- OSX MOJAVE -LD:架构X86_64 clang找不到符号:错误:链接器命令失败,出口代码1
- 使用从WINRT网格类派生的抽象类时,Casttobase未解决的外部符号错误
- LD:架构x86_64 clang找不到符号:错误:链接器命令失败,出口代码1(使用-v to See