我在一个头文件中声明了下面变量,在程序中多处调用,编译时报下面错误,请问怎么解决这个问题?#ifndef HASHTABLE
#define HASHTABLE
CMapStringToPtr* m_HashTable;
#endifStdAfx.obj : error LNK2005: "class CMapStringToPtr * m_HashTable" (?m_HashTable@@3PAVCMapStringToPtr@@A) already defined in TestRule.obj
Debug/test.exe : fatal error LNK1169: one or more multiply defined symbols found
#define HASHTABLE
CMapStringToPtr* m_HashTable;
#endifStdAfx.obj : error LNK2005: "class CMapStringToPtr * m_HashTable" (?m_HashTable@@3PAVCMapStringToPtr@@A) already defined in TestRule.obj
Debug/test.exe : fatal error LNK1169: one or more multiply defined symbols found
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货