主题:[讨论]错误纠正
Compiling...
test.cpp
Linking...
TestDlg.obj : error LNK2005: "public: __thiscall CAboutDlg::CAboutDlg(void)" (??0CAboutDlg@@QAE@XZ) already defined in test.obj
TestDlg.obj : error LNK2005: "protected: virtual void __thiscall CAboutDlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CAboutDlg@@MAEXPAVCDataExchange@@@Z) already defined in test.obj
TestDlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const * __stdcall CAboutDlg::_GetBaseMessageMap(void)" (?_GetBaseMessageMap@CAboutDlg@@KGPBUAFX_MSGMAP@@XZ) already defined in test.obj
TestDlg.obj : error LNK2005: "protected: virtual struct AFX_MSGMAP const * __thiscall CAboutDlg::GetMessageMap(void)const " (?GetMessageMap@CAboutDlg@@MBEPBUAFX_MSGMAP@@XZ) already defined in test.obj
TestDlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const CAboutDlg::messageMap" (?messageMap@CAboutDlg@@1UAFX_MSGMAP@@B) already defined in test.obj
TestDlg.obj : error LNK2005: "private: static struct AFX_MSGMAP_ENTRY const * const CAboutDlg::_messageEntries" (?_messageEntries@CAboutDlg@@0QBUAFX_MSGMAP_ENTRY@@B) already defined in test.obj
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_CloseDevice(unsigned long,unsigned long)" (?VCI_CloseDevice@@YGKKK@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_InitCAN(unsigned long,unsigned long,unsigned long,struct _INIT_CONFIG *)" (?VCI_InitCAN@@YGKKKKPAU_INIT_CONFIG@@@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_OpenDevice(unsigned long,unsigned long,unsigned long)" (?VCI_OpenDevice@@YGKKKK@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_StartCAN(unsigned long,unsigned long,unsigned long)" (?VCI_StartCAN@@YGKKKK@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_ResetCAN(unsigned long,unsigned long,unsigned long)" (?VCI_ResetCAN@@YGKKKK@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_Transmit(unsigned long,unsigned long,unsigned long,struct _VCI_CAN_OBJ *,unsigned long)" (?VCI_Transmit@@YGKKKKPAU_VCI_CAN_OBJ@@K@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_ReadErrInfo(unsigned long,unsigned long,unsigned long,struct _ERR_INFO *)" (?VCI_ReadErrInfo@@YGKKKKPAU_ERR_INFO@@@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_Receive(unsigned long,unsigned long,unsigned long,struct _VCI_CAN_OBJ *,unsigned long,int)" (?VCI_Receive@@YGKKKKPAU_VCI_CAN_OBJ@@KH@Z)
Debug/test.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.
test.exe - 15 error(s), 0 warning(s)
这都是什么错误啊,怎么改正呢。。。。。
test.cpp
Linking...
TestDlg.obj : error LNK2005: "public: __thiscall CAboutDlg::CAboutDlg(void)" (??0CAboutDlg@@QAE@XZ) already defined in test.obj
TestDlg.obj : error LNK2005: "protected: virtual void __thiscall CAboutDlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CAboutDlg@@MAEXPAVCDataExchange@@@Z) already defined in test.obj
TestDlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const * __stdcall CAboutDlg::_GetBaseMessageMap(void)" (?_GetBaseMessageMap@CAboutDlg@@KGPBUAFX_MSGMAP@@XZ) already defined in test.obj
TestDlg.obj : error LNK2005: "protected: virtual struct AFX_MSGMAP const * __thiscall CAboutDlg::GetMessageMap(void)const " (?GetMessageMap@CAboutDlg@@MBEPBUAFX_MSGMAP@@XZ) already defined in test.obj
TestDlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const CAboutDlg::messageMap" (?messageMap@CAboutDlg@@1UAFX_MSGMAP@@B) already defined in test.obj
TestDlg.obj : error LNK2005: "private: static struct AFX_MSGMAP_ENTRY const * const CAboutDlg::_messageEntries" (?_messageEntries@CAboutDlg@@0QBUAFX_MSGMAP_ENTRY@@B) already defined in test.obj
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_CloseDevice(unsigned long,unsigned long)" (?VCI_CloseDevice@@YGKKK@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_InitCAN(unsigned long,unsigned long,unsigned long,struct _INIT_CONFIG *)" (?VCI_InitCAN@@YGKKKKPAU_INIT_CONFIG@@@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_OpenDevice(unsigned long,unsigned long,unsigned long)" (?VCI_OpenDevice@@YGKKKK@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_StartCAN(unsigned long,unsigned long,unsigned long)" (?VCI_StartCAN@@YGKKKK@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_ResetCAN(unsigned long,unsigned long,unsigned long)" (?VCI_ResetCAN@@YGKKKK@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_Transmit(unsigned long,unsigned long,unsigned long,struct _VCI_CAN_OBJ *,unsigned long)" (?VCI_Transmit@@YGKKKKPAU_VCI_CAN_OBJ@@K@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_ReadErrInfo(unsigned long,unsigned long,unsigned long,struct _ERR_INFO *)" (?VCI_ReadErrInfo@@YGKKKKPAU_ERR_INFO@@@Z)
TestDlg.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall VCI_Receive(unsigned long,unsigned long,unsigned long,struct _VCI_CAN_OBJ *,unsigned long,int)" (?VCI_Receive@@YGKKKKPAU_VCI_CAN_OBJ@@KH@Z)
Debug/test.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.
test.exe - 15 error(s), 0 warning(s)
这都是什么错误啊,怎么改正呢。。。。。