I get this error:
Undefined symbols:
"drawLine(CGPoint, CGPoint)", referenced from:
-[TerrainLayer draw] in TerrainLayer.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"drawLine(CGPoint, CGPoint)", referenced from:
-[TerrainLayer draw] in TerrainLayer.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (1 error)
when I try drawing a simple line:
#import "TerrainLayer.h"
#import "cocos2d.h"
@implementation TerrainLayer
-(id) init
{
self = [super init];
if(self != nil)
{
}
return self;
}
-(void) draw
{
[super draw];
drawLine(ccp(0, 0), ccp(50, 50));
}
@end
Any ideas?
-Holger
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---