Help please (C++)

Hi I am trying to imploment Box2D with DragonfireSDK(Iphone development in c++) and I came across this problem:

this is the error and below is the code

1>c:\users\oskar\desktop\ipaaad\app.cpp(23): error C2661: 'b2World::b2World' : no overloaded function takes 3 arguments
1>c:\users\oskar\desktop\ipaaad\app.cpp(30): error C2228: left of '.CreateBody' must have class/struct/union
1> type is 'b2World *'
1> did you intend to use '->' instead?



Code:
//====================================================
// App.cpp
//====================================================
#include "DragonFireSDK.h"
#include <iostream>
#include <Box2D.h>

int LogoImage;
int LogoView;



void AppMain()
{   
   int scale(30);
   b2AABB worldAABB;
   worldAABB.lowerBound.Set(-1000/scale,-1000/scale);
   worldAABB.upperBound.Set(1000/scale,1000/scale);
   bool doSleep = true;
   b2Vec2 gravity(0.0f, 10.0f);
   LandscapeMode();
   b2World* world;
   world=new b2World(worldAABB,gravity,doSleep);
   
   
   b2BodyDef groundBodyDef;
   groundBodyDef.position.Set(0.0f, -10.0f);

   
   b2Body* groundBody = world.CreateBody(&groundBodyDef);
   b2PolygonShape groundBox;
   groundBox.SetAsBox(50.0f, 10.0f);

   
   groundBody->CreateFixture(&groundBox, 0.0f);

}

void AppExit()
{
   
}

void OnTimer()
{
   
}
thanks in advance!
1. Current Box2D no longer use the worldAABB parameter
2. did you intend to use '->' instead?
Thank you for your help but I've tried without worldAABB and I still get (on gravity) b2world::b2world error

and where would I use ->?
Since world is a pointer, you would need to use "->" instead of "." to access the member functions and variables.
I see thank you 🙂

Original thread: https://box2d.org/forum/viewtopic.php?t=8281