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.
error C2236: unexpected 'class' 'btStackAlloc'.
-
- Posts: 3
- Joined: Sun Mar 18, 2012 1:12 pm
error C2236: unexpected 'class' 'btStackAlloc'.
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: error C2236: unexpected 'class' 'btStackAlloc'.
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
Please use the one that ships with Bullet, either Bullet/Demos/HelloWorld or Bullet/Demos/BasicDemo
Thanks,
Erwin
-
- Posts: 3
- Joined: Sun Mar 18, 2012 1:12 pm
Re: error C2236: unexpected 'class' 'btStackAlloc'.
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..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
Thanks,
Leo
-
- Posts: 3
- Joined: Sun Mar 18, 2012 1:12 pm
Re: error C2236: unexpected 'class' 'btStackAlloc'.
I'm a beginner with vs C++ and bullet, i'll be very appreciate of your help.