Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VC2010下编译x64报error LNK2001 #185

Open
Icekettle opened this issue Nov 9, 2024 · 0 comments
Open

VC2010下编译x64报error LNK2001 #185

Icekettle opened this issue Nov 9, 2024 · 0 comments

Comments

@Icekettle
Copy link

Visual Studio 2010
32bit的编译没问题,切换到x64的时候报如下错误:

1>UIManager.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPEBD@Z)
1>StdAfx.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPEBD@Z)
1>DragDropImpl.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPEBD@Z)
1>UIShadow.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPEBD@Z)
1>WinImplBase.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const )" (?_Xlength_error@std@@YAXPEBD@Z)
1>UIIPAddressEx.obj : error LNK2019: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const )" (?_Xlength_error@std@@YAXPEBD@Z),该符号在函数 "protected: void __cdecl std::vector<class DuiLib::CDuiString,class std::allocator >::_Xlen(void)const " (?_Xlen@?$vector@VCDuiString@DuiLib@@v?$allocator@VCDuiString@DuiLib@@@std@@@std@@IEBAXXZ) 中被引用
1>UIAnimation.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const )" (?_Xlength_error@std@@YAXPEBD@Z)
1>UIMenu.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const )" (?_Xlength_error@std@@YAXPEBD@Z)
1>ControlFactory.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlength_error(char const )" (?_Xlength_error@std@@YAXPEBD@Z)
1>ControlFactory.obj : error LNK2019: 无法解析的外部符号 "void __cdecl std::_Xout_of_range(char const )" (?_Xout_of_range@std@@YAXPEBD@Z),该符号在函数 "public: class std::_Tree_iterator<class std::_Tree_val<class std::_Tmap_traits<class DuiLib::CDuiString,class DuiLib::CControlUI * (__cdecl)(void),struct std::less,class std::allocator<struct std::pair<class DuiLib::CDuiString const ,class DuiLib::CControlUI * (__cdecl
)(void)> >,0> > > __cdecl std::_Tree<class std::_Tmap_traits<class DuiLib::CDuiString,class DuiLib::CControlUI * (__cdecl
)(void),struct std::less,class std::allocator<struct std::pair<class DuiLib::CDuiString const ,class DuiLib::CControlUI * (__cdecl)(void)> >,0> >::erase(class std::_Tree_const_iterator<class std::_Tree_val<class std::_Tmap_traits<class DuiLib::CDuiString,class DuiLib::CControlUI * (__cdecl)(void),struct std::less,class std::allocator<struct std::pair<class DuiLib::CDuiString const ,class DuiLib::CControlUI * (__cdecl)(void)> >,0> > >)" (?erase@?$_Tree@V?$_Tmap_traits@VCDuiString@DuiLib@@P6APEAVCControlUI@2@XZU?$less@VCDuiString@DuiLib@@@std@@v?$allocator@U?$pair@$$CBVCDuiString@DuiLib@@P6APEAVCControlUI@2@XZ@std@@@5@$0A@@std@@@std@@qeaa?AV?$_Tree_iterator@V?$_Tree_val@V?$_Tmap_traits@VCDuiString@DuiLib@@P6APEAVCControlUI@2@XZU?$less@VCDuiString@DuiLib@@@std@@v?$allocator@U?$pair@$$CBVCDuiString@DuiLib@@P6APEAVCControlUI@2@XZ@std@@@5@$0A@@std@@@std@@@2@V?$_Tree_const_iterator@V?$_Tree_val@V?$_Tmap_traits@VCDuiString@DuiLib@@P6APEAVCControlUI@2@XZU?$less@VCDuiString@DuiLib@@@std@@v?$allocator@U?$pair@$$CBVCDuiString@DuiLib@@P6APEAVCControlUI@2@XZ@std@@@5@$0A@@std@@@std@@@2@@z) 中被引用
1>StdAfx.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPEBD@Z)
1>UIShadow.obj : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPEBD@Z)
1>D:\ChatGPT\DuiLib_Ultimate\Bin\DuiLib.dll : fatal error LNK1120: 2 个无法解析的外部命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant