Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++4.2 failed with exit code 1

xocde编译出现如下错误:

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1

原来是自己使用了相同名的 static全局变量。小心啊 小心,如果非必要还是定义成 成员变量好了。

原文地址:https://www.cnblogs.com/fjut/p/2662775.html