a.cpp 파일에 아래와 같이 static const 변수가 선언되어 있구요,
Code: Select all
static const float power[50] = {
12,
23,
20,
204.0f,
504.0f
};
이녀석을 b.cpp 파일에서도 access하고 싶은데
b.cpp 파일에서 여러 방법을 써봐도 안되는 군요~
Code: Select all
extern const float power[50]; //link error
extern static const float[50]; //compile error
이럴 땐 어떻게 해야할까요?