VS2015无法解析外部符号

在使用Visual Studio 2015进行C++开发时遇到LNK2019错误,提示无法解析外部符号。错误出现在`Employee`类的构造函数和析构函数。问题根源在于虚函数的使用不当,混淆了虚函数和纯虚函数的区别。通过查阅资料并修正代码,成功解决了问题。
摘要由CSDN通过智能技术生成

在使用VS编辑C++时,遇到了无法解析外部符号的错误

 

严重性 代码 说明 项目 文件 行
错误 LNK2019 无法解析的外部符号 "public: __thiscall Employee::Employee(void)" (??0Employee@@QAE@XZ),该符号在函数 "public: __thiscall manager::manager(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0manager@@QAE@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 中被引用 Process_four F:\C++\Process_four\Process_four\Process_four.obj 1

 

严重性 代码 说明 项目 文件 行
错误 LNK2019 无法解析的外部符号 "public: __thiscall Employee::~Employee(void)" (??1Employee@@QAE@XZ),该符号在函数 __unwindfunclet$??0manager@@QAE@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z$1 中被引用 Process_four F:\C++\Process_four\Process_four\Process_four.obj 1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值