Error in GLESDebugDraw

Hi,

I am getting a strange error, when I build my project

Undefined symbols for architecture armv7:
"__ZN13GLESDebugDrawC1Ef", referenced from:
-[Level1ActionLayer setupDebugDraw] in Level1ActionLayer.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Following is the code I am running, which gives this error:

-(void) setupdebugDraw
{
debugDraw = new GLESDebugDraw(PTM_RATIO*[[CCDirector sharedDirector] contentScaleFactor]);
world->SetDebugDraw(debugDraw);
debugDraw->SetFlags(b2DebugDraw::e_shapeBit);
}

Can somebody please identify why is this error coming. I am using COCOS2D 1.1, BOX2D

Thanks for your help,

Mohit
SInce I am new to this field I did not realize it, and followed the instruction from the book to copy the GLES-Render files, I was getting this error. However, when I created two new files in my project, GLES-Render.h and GLES-Render.mm and copied the content of the original GLES-Render files provided with cocos2d and build the project, I don't see this error

Thanks,

Mohit

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