C++代码 不知道是什么错误 大神进来看一下
编译器提示:--------------------Configuration:Library-Win32Debug--------------------Linking...
编译器提示:
--------------------Configuration: Library - Win32 Debug--------------------
Linking...
Library.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Recordset,&struct __s_GUID _GUID_00001556_0000_0010_8000_00aa006d2ea4> > prec" (?prec@@3V?$_com_ptr_t@V?$_com_IIID@U_Recordset@@$1?_GUID_00001556_0000_0010_8000_00aa006d2ea4@@3U_
_s_GUID@@A@@@@A) already defined in Add.obj
Library.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00001550_0000_0010_8000_00aa006d2ea4> > pconn" (?pconn@@3V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$1?_GUID_00001550_0000_0010_8000_00aa006d2ea4@
@3U__s_GUID@@A@@@@A) already defined in Add.obj
LibraryDlg.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00001550_0000_0010_8000_00aa006d2ea4> > pconn" (?pconn@@3V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$1?_GUID_00001550_0000_0010_8000_00aa006d2e
a4@@3U__s_GUID@@A@@@@A) already defined in Add.obj
执行 link.exe 时出错. 展开
--------------------Configuration: Library - Win32 Debug--------------------
Linking...
Library.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Recordset,&struct __s_GUID _GUID_00001556_0000_0010_8000_00aa006d2ea4> > prec" (?prec@@3V?$_com_ptr_t@V?$_com_IIID@U_Recordset@@$1?_GUID_00001556_0000_0010_8000_00aa006d2ea4@@3U_
_s_GUID@@A@@@@A) already defined in Add.obj
Library.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00001550_0000_0010_8000_00aa006d2ea4> > pconn" (?pconn@@3V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$1?_GUID_00001550_0000_0010_8000_00aa006d2ea4@
@3U__s_GUID@@A@@@@A) already defined in Add.obj
LibraryDlg.obj : error LNK2005: "class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00001550_0000_0010_8000_00aa006d2ea4> > pconn" (?pconn@@3V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$1?_GUID_00001550_0000_0010_8000_00aa006d2e
a4@@3U__s_GUID@@A@@@@A) already defined in Add.obj
执行 link.exe 时出错. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询