static variable link error
问题 I\'m writing C++ code on a mac. Why do I get this error when compiling?: Undefined symbols for architecture i386: \"Log::theString\", referenced from: Log::method(std::string) in libTest.a(Log.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) Not sure if my code is wrong or I have to add additional flags to Xcode. My current XCode configurations are the default ones for a \'static library\' project. My code: Log.h-