Page 1 of 1

Returning btGhostObject causes error.

Posted: Sat Oct 03, 2015 10:19 am
by trying

Code: Select all

btGhostObject* test()
{
	btGhostObject* ob = new btGhostObject();
	return ob;
}
error C2143: syntax error : missing ';' before '*'

Re: Returning btGhostObject causes error.

Posted: Tue Oct 06, 2015 11:42 pm
by LHLaurini
You need to use

Code: Select all

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