我将我的 Eclipse Android SDK 更新到 3.2 版,现在我得到了常量的编译错误。
这曾经有效:
static const X = 2;
static const X_SQUARED = X * X;
但现在我在第二行得到一个编译错误:
error: initializer element is not a compile-time constant
这是故意改变吗?还是我的环境可能有问题?
谢谢!
我将我的 Eclipse Android SDK 更新到 3.2 版,现在我得到了常量的编译错误。
这曾经有效:
static const X = 2;
static const X_SQUARED = X * X;
但现在我在第二行得到一个编译错误:
error: initializer element is not a compile-time constant
这是故意改变吗?还是我的环境可能有问题?
谢谢!