我最近开始使用子弹物理库;我在eclipse cdt(ubuntu 15.04)中链接了这个库,比如-I / usr / local / include / bullet -BulletSoftBody -BulletDynamics -BulletCollision -LinearMath;问题是当我尝试编译这个简单的程序时:
#include <btBulletCollisionCommon.h>
#include <btBulletDynamicsCommon.h>
int main(int argc, char **args){
btBroadphaseInterface* broadPhase = new btDbvtBroadphase();
delete broadPhase;
return 0;
}
我给了我这个编译时错误:
Description Resource Path Location Type
The type 'btDbvtBroadphase' must implement the inherited pure virtual method 'btBroadphaseInterface::setAabb' main.cpp /Alpha++/src line 11 Code Analysis Problem