android Fatal signal 4 (SIGILL), code 1, fault addr 0xa455075e in tid 28272 (GLThread 3467)

有返回值的函数没有返回值

不同CPU的处理能力是不一样的

如:

bool Function::init()
{
    if (!LayerColor::init())
    {
        return false;
    }

    auto display = Director::getInstance()->getVisibleSize();
    Vec2 origin = Director::getInstance()->getVisibleOrigin();

    this->setName("Function");

    auto scrollView = this->initScrollView();
    auto layer = this->CreateScrollViewLayer();
    this->CreateFunc();
    //return true;
}

永远不要挑战 编译器的弊端

猜你喜欢

转载自www.cnblogs.com/YZFHKMS-X/p/12798053.html