Hi,
I am following the tutorial http://www.bit-101.com/blog/?p=2115.In this tutorial i found a project template and go through it to begin….
I have downloaded cocos2d-iphone-0.99.1 add the subdirectory
cocos2d to project?.but when i built i got 9 error and 4 worning
Scene.h: No such file or directory
Director? undeclared (first use in
this function)
/Volumes/Jobed/cocos2d/CCTexture2D.m:79:24:
error: FontManager.h: No such file or
directory
/Volumes/Jobed/cocos2d/CCTexture2D.m:80:35:
error: FontLabelStringDrawing.h: No
such file or directory
/Volumes/Jobed/cocos2d/CCTexture2D.m:
In function ?-[CCTexture2D(Text)
initWithString:fontName:fontSize:]?:
/Volumes/Jobed/cocos2d/CCTexture2D.m:519:
error: ?ZFont? undeclared (first use
in this function)
/Volumes/Jobed/cocos2d/CCTexture2D.m:519:
error: (Each undeclared identifier is
reported only once
/Volumes/Jobed/cocos2d/CCTexture2D.m:519:
error: for each function it appears
in.)
/Volumes/Jobed/cocos2d/CCTexture2D.m:519:
error: ?zFont? undeclared (first use
in this function)
/Volumes/Jobed/cocos2d/CCTexture2D.m:519:
error: ?FontManager? undeclared (first
use in this function)
/Volumes/Jobed/cocos2d/CCTexture2D.m:521:
warning: ?NSString? may not respond to
?-sizeWithZFont:?
/Volumes/Jobed/cocos2d/CCTexture2D.m:521:
warning: (Messages without a matching
method signature
/Volumes/Jobed/cocos2d/CCTexture2D.m:521:
warning: will be assumed to return
?id? and accept
/Volumes/Jobed/cocos2d/CCTexture2D.m:521:
warning: ??? as arguments.)
/Volumes/Jobed/cocos2d/CCTexture2D.m:521:
error: incompatible types in
assignment
/Volumes/Jobed/cocos2d/CCTexture2D.m:
In function ?-[CCTexture2D(Text)
initWithString:dimensions:alignment:fontName:fontSize:]?:
/Volumes/Jobed/cocos2d/CCTexture2D.m:567:
error: ?FontManager? undeclared (first
use in this function)
/Volumes/Jobed/cocos2d/CCTexture2D.m:569:
warning: ?NSString? may not respond to
?-drawInRect:withZFont:lineBreakMode:alignment:?
etc?.i don?t know why?i am new can help??
Similar:
- (cocos2d) “invalid context” error with CCLabel initialization I’m trying to call the labelWithString function and I’m getting the following run-time errors: Error: CGContextSetGrayFillColor: invalid context 0×0 Error: CGContextTranslateCTM: invalid context 0×0 Error:...
- Failed Perl Module install (Perl extension for the Mcrypt cryptography library) I get errors while trying to install the Perl extension for the Mcrypt cryptography library module. I am on a GD hosting acct, and running...
- Use Cocos2d Within a Single iPhone View I have an iPhone application that is mostly using standard controls. There is one view that is rendered in OpenGL (fancy graphs). In the interest...
- (Objective-C) runtime errors with self.label initialization I’m trying to call the labelWithString function and I’m getting the following run-time errors: Error: CGContextSetGrayFillColor: invalid context 0×0 Error: CGContextTranslateCTM: invalid context 0×0 Error:...
- custom class not implementing itself when i use alloc/init or new in objective-c i am writing my first custom class in objective-c and when i am trying to implement an instance of my custom class i get warnings...
Tags: alignment, iphone, m 80, method signature, project template, undeclared identifier