使用TAPI编程时链接错误
我在使用TAPI编程时,编译可通过,但链接时报如下错误:
-------------------Configuration: viocedb - Win32 Debug--------------------
Linking...
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnForceClose(void)" (?OnForceClose@CTapiLine@@MAEXXZ)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnDynamicRemove(void)" (?OnDynamicRemove@CTapiLine@@MAEXXZ)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnDynamicCreate(void)" (?OnDynamicCreate@CTapiLine@@MAEXXZ)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CMyLine::OnNewCall(class CTapiCall *)" (?OnNewCall@CMyLine@@MAEXPAVCTapiCall@@@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnToneDetected(struct HCALL__ const *,unsigned long)" (?OnToneDetected@CTapiLine@@MAEXPBUHCALL__@@K@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnCallMediaModeChange(struct HCALL__ const *,unsigned long)" (?OnCallMediaModeChange@CTapiLine@@MAEXPBUHCALL__@@K@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnDigitDetected(struct HCALL__ const *,unsigned long,unsigned long)" (?OnDigitDetected@CTapiLine@@MAEXPBUHCALL__@@KK@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CMyLine::OnDeviceStateChange(unsigned long,unsigned long,unsigned long)" (?OnDeviceStateChange@CMyLine@@MAEXKKK@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnGenerateComplete(struct HCALL__ const *,unsigned long)" (?OnGenerateComplete@CTapiLine@@MAEXPBUHCALL__@@K@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnGatherDigitsComplete(struct HCALL__ const *,unsigned long)" (?OnGatherDigitsComplete@CTapiLine@@MAEXPBUHCALL__@@K@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnDevSpecificFeature(unsigned long,unsigned long,unsigned long,unsigned long)" (?OnDevSpecificFeature@CTapiLine@@MAEXKKKK@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnDevSpecific(unsigned long,unsigned long,unsigned long,unsigned long)" (?OnDevSpecific@CTapiLine@@MAEXKKKK@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnClose(void)" (?OnClose@CTapiLine@@MAEXXZ)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CMyLine::OnCallStateChange(struct HCALL__ const *,unsigned long,unsigned long,unsigned long)" (?OnCallStateChange@CMyLine@@MAEXPBUHCALL__@@KKK@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CMyLine::OnCallInfoChange(struct HCALL__ const *,unsigned long)" (?OnCallInfoChange@CMyLine@@MAEXPBUHCALL__@@K@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnAgentStateChange(unsigned long,unsigned long,unsigned long)" (?OnAgentStateChange@CTapiLine@@MAEXKKK@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CTapiLine::OnAddressStateChange(unsigned long,unsigned long)" (?OnAddressStateChange@CTapiLine@@MAEXKK@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "public: __thiscall CTapiLine::CTapiLine(void)" (??0CTapiLine@@QAE@XZ)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CTapiLine::~CTapiLine(void)" (??1CTapiLine@@UAE@XZ)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "public: static struct CRuntimeClass const CTapiLine::classCTapiLine" (?classCTapiLine@CTapiLine@@2UCRuntimeClass@@B)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall CTapiConnection::GetLineDeviceCount(void)const " (?GetLineDeviceCount@CTapiConnection@@QBEIXZ)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "public: long __thiscall CTapiConnection::Init(char const *,struct CRuntimeClass *,struct CRuntimeClass *,struct CRuntimeClass *,struct CRuntimeClass *,unsigned long)" (?Init@CTapiConnect
ion@@QAEJPBDPAUCRuntimeClass@@111K@Z)
YUNXINGDIALOG.obj : error LNK2001: unresolved external symbol "class CTapiConnection * __cdecl GetTAPIConnection(void)" (?GetTAPIConnection@@YAPAVCTapiConnection@@XZ)
Debug/viocedb.exe : fatal error LNK1120: 23 unresolved externals
Error executing link.exe.
viocedb.exe - 24 error(s), 0 warning(s)
有没有解决的好办法。