Box2D Forums

It is currently Sun May 19, 2013 7:13 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Error in GLESDebugDraw
PostPosted: Sun Jun 03, 2012 4:00 am 
Offline

Joined: Sun Jun 03, 2012 3:55 am
Posts: 2
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


Top
 Profile  
 
PostPosted: Fri Jun 08, 2012 7:12 pm 
Offline

Joined: Sun Jun 03, 2012 3:55 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group