bullet, iOS真机编译错误error: identifier or immediate expression expected解决方法

刚才发现c3dEngine2(http://git.oschina.net/wantnon2/c3dEngine2 或 https://github.com/wantnon2/c3dEngine2)的bulletTest1 demo在iOS真机上编译不过,报error: identifier or immediate expression expected的编译错误。

google了一下,找到下面帖子:http://www.bulletphysics.org/Bullet/phpBB3/viewtopic.php?t=9538&p=32136

按着2楼bullet作者自己给出的方案:

Could you try to disable NEON for 64bit somewhere in btScalar.h, using something like the following line 183 (not tested)

#elif defined( __ARM_NEON__ ) && (!defined(__LP64__) && !defined(_LP64))

修改之后,问题解决。

上一篇:Qt5.编译错误.error: C2338: The slot requires more arguments than the signal provides.


下一篇:IAR编译错误Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0x8 more bytes needed. The problem occurred while processing the segment