架构i 386的未定义符号:“log:the String”,引用于libTest.a(Log.o)ld中的log:方法(std:string):i 386 clang:Error:linker命令失败,退出代码1(使用-v查看调用)
#include <iostream>#include <string>using namespace std;class Log{public: static void method(string arg);private: static string theString ;};
#include "Log.h"#include <ostream>void Log::method(string arg){ theString = "hola"; cout << theString << endl; }
相关分类