error C2236: unexpected 'class' 'btStackAlloc'.

coastro
Posts: 3
Joined: Sun Mar 18, 2012 1:12 pm

error C2236: unexpected 'class' 'btStackAlloc'.

Post by coastro »

Hi, all, i got an error when debug the helloworld program, error details as follows:
error C2236: unexpected 'class' 'btStackAlloc'. Did you forget a ';'?

error file is btCollisionWorld.h,
error line is:
class btStackAlloc;

this is my project structure, i just make BulletHelloworld froject a dependencies to another five projects.
[img]http://ys-j.ys168.com/?未命名.jpg_50c4bsl7 ... ku0u12f03z[/img]


thanks a lot.
You do not have the required permissions to view the files attached to this post.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: error C2236: unexpected 'class' 'btStackAlloc'.

Post by Erwin Coumans »

What 'hello world' example did you use? The one in the wiki is likely out of date.

Please use the one that ships with Bullet, either Bullet/Demos/HelloWorld or Bullet/Demos/BasicDemo
Thanks,
Erwin
coastro
Posts: 3
Joined: Sun Mar 18, 2012 1:12 pm

Re: error C2236: unexpected 'class' 'btStackAlloc'.

Post by coastro »

Erwin Coumans wrote:What 'hello world' example did you use? The one in the wiki is likely out of date.

Please use the one that ships with Bullet, either Bullet/Demos/HelloWorld or Bullet/Demos/BasicDemo
Thanks,
Erwin
yes, i want to make a gui display for "Bullet/Demos/Helloworld" in HelloworldDemo, so i make additional dependencies of project OpenGLSupport and Zero Check for Hellowrold, and by implementing methods clientMoveAndDisplay() and displayCallback(), i get original code in Helloworld into initPhysics() method of HelloworldDemo, and make same configuration like BasicDemo or CcsPhysicsDemo, but the error remains..

Thanks,
Leo
coastro
Posts: 3
Joined: Sun Mar 18, 2012 1:12 pm

Re: error C2236: unexpected 'class' 'btStackAlloc'.

Post by coastro »

I'm a beginner with vs C++ and bullet, i'll be very appreciate of your help.