Click here to Skip to main content
16,018,534 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm a beginner with VC++. I have just completed compling my program but when I tried to build it, there are some errors happens. Could you guys help me to solve those ones ?
VB
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CMSComm::GetRuntimeClass(void)const " (?GetRuntimeClass@CMSComm@@UBEPAUCRuntimeClass@@XZ)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMSComm::SetInputMode(long)" (?SetInputMode@CMSComm@@QAEXJ@Z)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMSComm::SetInBufferSize(short)" (?SetInBufferSize@CMSComm@@QAEXF@Z)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMSComm::SetInputLen(short)" (?SetInputLen@CMSComm@@QAEXF@Z)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMSComm::SetRThreshold(short)" (?SetRThreshold@CMSComm@@QAEXF@Z)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMSComm::SetSettings(char const *)" (?SetSettings@CMSComm@@QAEXPBD@Z)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMSComm::SetCommPort(short)" (?SetCommPort@CMSComm@@QAEXF@Z)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMSComm::SetPortOpen(int)" (?SetPortOpen@CMSComm@@QAEXH@Z)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CMSComm::GetPortOpen(void)" (?GetPortOpen@CMSComm@@QAEHXZ)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: struct tagVARIANT __thiscall CMSComm::GetInput(void)" (?GetInput@CMSComm@@QAE?AUtagVARIANT@@XZ)
XbeefixedDlg.obj : error LNK2001: unresolved external symbol "public: short __thiscall CMSComm::GetCommEvent(void)" (?GetCommEvent@CMSComm@@QAEFXZ)
msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main


I really appreciate all your helps. Thank you very much
Posted

1 solution

You are missing a library reference in your Linker properties; check the documentation for the CMSComm class.
 
Share this answer
 
Comments
LongDuyTran 13-Nov-11 7:18am    
Could you send me that library. I check on system32 but the MScomm32.ocx existed. But I dont know the reason why my program still had those problems.
Richard MacCutchan 13-Nov-11 7:26am    
I am sorry but I have no idea where this library comes from, have you checked the documentation for the classes you are trying to use? I assumed since you were using it that you already have it installed on your system.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900