visual C++ 2015 报错error LNK2019: unresolved external symbol [email protected] referenced in function
程序员文章站
2024-02-17 13:54:58
...
visual C++ 2015 报错error LNK2019: unresolved external symbol aaa@qq.com referenced in function
如图所示:
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com4 referenced in function "public: bool __thiscall CSqlManager::GetRecord(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::vector<struct History,class std::allocator<struct History> > &,class ATL::CTime,class ATL::CTime)" (?aaa@qq.com@@QAE_NV?aaa@qq.com?aaa@qq.com@aaa@qq.com@V?aaa@qq.com@2@@aaa@qq.com@AAV?aaa@qq.com@@V?aaa@qq.com@@@aaa@qq.com@@3@aaa@qq.com@@2@Z)
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com4 referenced in function "public: bool __thiscall CSqlManager::GetRecord(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::vector<struct History,class std::allocator<struct History> > &,class ATL::CTime,class ATL::CTime)" (?aaa@qq.com@@QAE_NV?aaa@qq.com?aaa@qq.com@aaa@qq.com@V?aaa@qq.com@2@@aaa@qq.com@AAV?aaa@qq.com@@V?aaa@qq.com@@@aaa@qq.com@@3@aaa@qq.com@@2@Z)
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com4 referenced in function "public: bool __thiscall CSqlManager::Init(struct SQLNode const &)" (?aaa@qq.com@@aaa@qq.com@@Z)
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com32 referenced in function "public: bool __thiscall CSqlManager::Init(struct SQLNode const &)" (?aaa@qq.com@@aaa@qq.com@@Z)
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com8 referenced in function "public: bool __thiscall CSqlManager::AddHistory(struct History const &)" (?aaa@qq.com@@aaa@qq.com@@Z)
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com4 referenced in function "public: bool __thiscall CSqlManager::GetRecord(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::vector<struct History,class std::allocator<struct History> > &,class ATL::CTime,class ATL::CTime)" (?aaa@qq.com@@QAE_NV?aaa@qq.com?aaa@qq.com@aaa@qq.com@V?aaa@qq.com@2@@aaa@qq.com@AAV?aaa@qq.com@@V?aaa@qq.com@@@aaa@qq.com@@3@aaa@qq.com@@2@Z)
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com12 referenced in function "public: bool __thiscall CSqlManager::Init(struct SQLNode const &)" (?aaa@qq.com@@aaa@qq.com@@Z)
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com4 referenced in function "public: bool __thiscall CSqlManager::GetRecord(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::vector<struct History,class std::allocator<struct History> > &,class ATL::CTime,class ATL::CTime)" (?aaa@qq.com@@QAE_NV?aaa@qq.com?aaa@qq.com@aaa@qq.com@V?aaa@qq.com@2@@aaa@qq.com@AAV?aaa@qq.com@@V?aaa@qq.com@@@aaa@qq.com@@3@aaa@qq.com@@2@Z)
1>SqlManager.obj : error LNK2019: unresolved external symbol aaa@qq.com4 referenced in function "public: bool __thiscall CSqlManager::DeInit(void)" (?aaa@qq.com@@QAE_NXZ)
解决方案:
1.在debug下,additional dependencies下添加libmysqld.lib
2.在release下,additional dependencies下添加libmysql.lib
别忘了把MySQL的目录加载进来噢~
附上mysql包,自取,免费。
https://download.csdn.net/download/weixin_43803955/12720420
上一篇: 微信小程序中常见的几种授权