asked
[MMORPG Game Development Series with C++ and Unreal] Part 1: Introduction to C++ Programming
TextRPG #3
Written on
·
227
0
함수 선언 부분에서
void PrintStatInfo(const char* name, const StatInfo& info);
부분에서 빌드를 하면 "확인 할 수 없는 외부참조 입니다"라는 오류가 뜨면서 되지 않습니다.
혹시나 해서 const를 지우고 StatInfo& info만 했을때는 정상적으로 실행이 돼서
const 부분이 문제인거 같은데 어떤 이유로 이런건가요??
Answer 1
cpp의 구현부도 똑같이 바꿔주셔야 합니다.