Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Objective-C help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xstep" data-source="post: 1241099" data-attributes="member: 11647"><p>I don't know. I even cut and paste your gcc compile command.</p><p></p><p>The only thing I can think of is that your include isn't finding the Object.h. When I altered to code to get that result, I got the following. Notice though that it tells me that. Beyond the first two error lines, the warning lines are identical to yours.</p><p></p><p>[code]Greater.m:9:26: error: objcx/Object.h: No such file or directory</p><p>Greater.m:12: error: cannot find interface declaration for ‘Object’, superclass of ‘Greeter’</p><p>Greater.m: In function ‘main’:</p><p>Greater.m:39: warning: ‘Greeter’ may not respond to ‘+new’</p><p>Greater.m:39: warning: (Messages without a matching method signature</p><p>Greater.m:39: warning: will be assumed to return ‘id’ and accept</p><p>Greater.m:39: warning: ‘...’ as arguments.)</p><p>Greater.m:43: warning: no ‘-free’ method found[/code]</p></blockquote><p></p>
[QUOTE="xstep, post: 1241099, member: 11647"] I don't know. I even cut and paste your gcc compile command. The only thing I can think of is that your include isn't finding the Object.h. When I altered to code to get that result, I got the following. Notice though that it tells me that. Beyond the first two error lines, the warning lines are identical to yours. [code]Greater.m:9:26: error: objcx/Object.h: No such file or directory Greater.m:12: error: cannot find interface declaration for ‘Object’, superclass of ‘Greeter’ Greater.m: In function ‘main’: Greater.m:39: warning: ‘Greeter’ may not respond to ‘+new’ Greater.m:39: warning: (Messages without a matching method signature Greater.m:39: warning: will be assumed to return ‘id’ and accept Greater.m:39: warning: ‘...’ as arguments.) Greater.m:43: warning: no ‘-free’ method found[/code] [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Objective-C help
Top