ProjectAAA.obj:错误 LNK2001:未解析的外部符号“public:__thiscall X::ClassEvent::ClassEvent(unsigned int)”(??0ClassEvent@X@@QAE@I@Z)
boost::shared_ptr<ClassEvent> bcfEvent(new ClassEvent((unsigned int) 10));
我已经定义ClassEvent::ClassEvent(unsigned int)
并且不知道如何修复此 LINK 错误。
任何建议表示赞赏。
谢谢
更多信息:
1>ProjectAAA.obj:错误LNK2019:函数中引用的未解析外部符号“public:__thiscall APP::X::ClassEvent::ClassEvent(unsigned int)”(??0ClassEvent@X@APP@@QAE@I@Z) “私有:类 std::vector,类 std::allocator > > __thiscall APP::X::ProjectAAA::GenerateEvents(类 std::map > > const &)” (?GenerateEvents@ProjectAAA@X@APP@@ AAE?AV?$vector@V?$shared_ptr@VClassEvent@X@APP@@@boost@@V?$allocator@V?$shared_ptr@VClassEvent@X@APP@@@boost@@@std@@@std @@ABV?$map@VDate@APP@@IUEventAttributesMapCompare@ProjectAAA@X@2@V?$allocator@U?$pair@$$CBVDate@APP@@I@std@@@std@@@5@@ Z)
现在我已经完全隔离了错误:
1>ProjectAAA.obj:错误LNK2019:函数中引用的未解析外部符号“public:__thiscall APP::X::ClassEvent::ClassEvent(unsigned int)”(??0ClassEvent@X@APP@@QAE@I@Z) “私有:void __thiscall APP::X::ProjectAAA::TestGenerateEvents(void)”(?TestGenerateEvents@ProjectAAA@X@APP@@AAEXXZ)