Hi,
I have one constant variable and want to use it in two files. I put it in
the header file and then include the header file. The compiler always say
"error C2370: 'arraysize' : redefinition; different storage class". What
shall I do? Files are listed below. I'm using Visual C++ 6.0
By the way, how to use STL (vector , for example) to create a
multi-dimension array?
Many thanks.
Karen
---------------------------------
my header file - consts.h:
const int arraysize = 15;
my sources file 1 - op1.cpp:
#include consts.h
char array1[arraysize];
my source file 2 - op2.cpp:
#include consts.h
char array2[arraysize];