I was talking about the
Box2D Physics Engine )! I get the following error when i try to create a world:
1>Linking...
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::~b2World(void)" (??1b2World@@QAE@XZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::b2World(struct b2AABB const &,struct b2Vec2 const &,bool)" (??0b2World@@QAE@ABUb2AABB@@ABUb2Vec2@@_N@Z) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Debug\Dark GDK - 2D Game1.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Bacioiu Ciprian\My Documents\Visual Studio 2008\Projects\Dark GDK - 2D Game1\Dark GDK - 2D Game1\Debug\BuildLog.htm"
1>Dark GDK - 2D Game1 - 3 error(s), 0 warning(s)
My code si the following:
#include "DarkGDK.h"
#include "Box2D.h"
void DarkGDK ( void )
{
dbSyncOn();
dbSyncRate(60);
dbSetDisplayMode(800,600,32);
b2AABB worldAABB;
worldAABB.lowerBound.Set(-100.0f, -100.0f);
worldAABB.upperBound.Set(100.0f, 100.0f);
b2Vec2 gravity(0.0f, -10.0f);
bool doSleep = true;
b2World world(worldAABB, gravity, doSleep);
while ( LoopGDK ( ) )
{
dbSync ( );
}
return;
}
And yes i have added the following folders in VC++ Directory:
Include, Library and SOurce
! But still.. i can't compile