急!VC++ error LNK2005错误怎么解决??
编译之后出现:--------------------Configuration:diaryyy-Win32Debug--------------------Linkin...
编译之后出现:
--------------------Configuration: diaryyy - Win32 Debug--------------------
Linking...
DlgLogin.obj : error LNK2005: "public: static class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00000550_0000_0010_8000_00aa006d2ea4> > CLRunSql::m_database" (?m_database@CLRunSql@@2V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$
1?_GUID_00000550_0000_0010_8000_00aa006d2ea4@@3U__s_GUID@@A@@@@A) already defined in diaryyy.obj
LRunSql.obj : error LNK2005: "public: static class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00000550_0000_0010_8000_00aa006d2ea4> > CLRunSql::m_database" (?m_database@CLRunSql@@2V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$1
?_GUID_00000550_0000_0010_8000_00aa006d2ea4@@3U__s_GUID@@A@@@@A) already defined in diaryyy.obj
Debug/diaryyy.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
diaryyy.exe - 3 error(s), 0 warning(s)
我是菜鸟,完全不明白这是什么错。求各位大虾教个解决方法,或者大概的解决思路。急急急!!!
跪谢~~~可以追加50分! 展开
--------------------Configuration: diaryyy - Win32 Debug--------------------
Linking...
DlgLogin.obj : error LNK2005: "public: static class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00000550_0000_0010_8000_00aa006d2ea4> > CLRunSql::m_database" (?m_database@CLRunSql@@2V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$
1?_GUID_00000550_0000_0010_8000_00aa006d2ea4@@3U__s_GUID@@A@@@@A) already defined in diaryyy.obj
LRunSql.obj : error LNK2005: "public: static class _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00000550_0000_0010_8000_00aa006d2ea4> > CLRunSql::m_database" (?m_database@CLRunSql@@2V?$_com_ptr_t@V?$_com_IIID@U_Connection@@$1
?_GUID_00000550_0000_0010_8000_00aa006d2ea4@@3U__s_GUID@@A@@@@A) already defined in diaryyy.obj
Debug/diaryyy.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
diaryyy.exe - 3 error(s), 0 warning(s)
我是菜鸟,完全不明白这是什么错。求各位大虾教个解决方法,或者大概的解决思路。急急急!!!
跪谢~~~可以追加50分! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询