Returning btGhostObject causes error.

Post Reply
trying
Posts: 15
Joined: Sat May 16, 2015 4:32 pm

Returning btGhostObject causes error.

Post by trying »

Code: Select all

btGhostObject* test()
{
	btGhostObject* ob = new btGhostObject();
	return ob;
}
error C2143: syntax error : missing ';' before '*'
LHLaurini
Posts: 9
Joined: Tue Sep 08, 2015 6:40 pm

Re: Returning btGhostObject causes error.

Post by LHLaurini »

You need to use

Code: Select all

#include <BulletCollision/CollisionDispatch/btGhostObject.h>
Man, you gotta research more before posting.
Post Reply