#ifndef __CONFIGURE_H__
#define __CONFIGURE_H__
#include<iostream>
#include<string>
using namespace::std;
string num_tmp[]={"first","second","third","fourth","fifth","sixth","seventh","eighth","ninth","tenth"};
string num[sizeof(num_tmp)/sizeof(string)];
const char sequence_list_name[] = "log/sequence_list.log";
#endif
在其他两个CPP文件中包含了这个头文件,然后报下面这个错
1>sequence_list.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * num" (?num@@3PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) 已经在 my_exception.obj 中定义
1>sequence_list.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * num_tmp" (?num_tmp@@3PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) 已经在 my_exception.obj 中定义
1>E:\syns\data struct\Debug\data struct.exe : fatal error LNK1169: 找到一个或多个多重定义的符号
就是报num_tmp和num重复定义,怎么解决