맥OS

[mac osx] static변수를 사용하려다가 링크에러!!

개발자_이훈규 2016. 2. 14. 21:02

에러 메세지

Undefined symbols for architecture x86_64: c++ static




static 변수는 반드시 cpp파일에서 선언한다.


해결방법 : http://stackoverflow.com/questions/9282354/static-variable-link-error