求问多文件包含错误
我编的程序,出现下列问题,我觉得是多文件包含出错,求各位大虾帮帮忙!全都是连接错误,以下是出错信息basic_select.h包含的头文件
#include "stdafx.h"
#include "舌象数据库.h"
#include "basic_select.h"
#include "舌象数据库Dlg.h"
Mul_select.h包含的头文件
#include "stdafx.h"
#include "舌象数据库.h"
#include "Mul_select.h"
#include "舌象数据库Dlg.h"
请大虾们帮帮忙,谢谢了!
--------------------Configuration: 舌象数据库 - Win32 Debug--------------------
Compiling...
StdAfx.cpp
i:\周生福\6日舌象数据库\debug\msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
Compiling...
Skipping... (no relevant changes detected)
basic_select.cpp
Mul_select.cpp
select_type.cpp
舌象数据库.cpp
舌象数据库Dlg.cpp
Linking...
Mul_select.obj : error LNK2005: "class CString m_strSQL" (?m_strSQL@@3VCString@@A) already defined in basic_select.obj
StdAfx.obj : error LNK2005: "class CString m_strSQL" (?m_strSQL@@3VCString@@A) already defined in basic_select.obj
StdAfx.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00000550_0000_0010_8000_00aa006d2ea4> > m_Connection" (?m_Connection@@3V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$1?_GUID_00000550_0000_0010_8000_
00aa006d2ea4@@3U__s_GUID@@A@@@@A) already defined in basic_select.obj
StdAfx.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Recordset,&struct __s_GUID _GUID_00000556_0000_0010_8000_00aa006d2ea4> > m_Recordset" (?m_Recordset@@3V?$_com_ptr_t@V?$_com_IIID@U_Recordset@@$1?_GUID_00000556_0000_0010_8000_00aa
006d2ea4@@3U__s_GUID@@A@@@@A) already defined in basic_select.obj
StdAfx.obj : error LNK2005: "class CListBox m_DataRecord" (?m_DataRecord@@3VCListBox@@A) already defined in basic_select.obj
舌象数据库Dlg.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00000550_0000_0010_8000_00aa006d2ea4> > m_Connection" (?m_Connection@@3V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$1?_GUID_00000550_0000_001
0_8000_00aa006d2ea4@@3U__s_GUID@@A@@@@A) already defined in basic_select.obj
舌象数据库Dlg.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Recordset,&struct __s_GUID _GUID_00000556_0000_0010_8000_00aa006d2ea4> > m_Recordset" (?m_Recordset@@3V?$_com_ptr_t@V?$_com_IIID@U_Recordset@@$1?_GUID_00000556_0000_0010_80
00_00aa006d2ea4@@3U__s_GUID@@A@@@@A) already defined in basic_select.obj
舌象数据库Dlg.obj : error LNK2005: "class CString m_strSQL" (?m_strSQL@@3VCString@@A) already defined in basic_select.obj
Debug/舌象数据库.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.