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: 1241234" data-attributes="member: 11647"><p>The following find command shows Object.h in many many places. As you can see by the list, I have both Xcode 3 & 4 installed, each with their own copies.</p><p></p><p>[code]find / -name "Object.h" -print[/code]</p><p></p><p>[code]/Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/usr/include/objc/Object.h</p><p>/Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/include/objc/Object.h</p><p>/Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/include/objc/Object.h</p><p>/Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/objc/Object.h</p><p>/Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/include/objc/Object.h</p><p>/Xcode3/SDKs/MacOSX10.5.sdk/usr/X11/include/X11/Object.h</p><p>/Xcode3/SDKs/MacOSX10.5.sdk/usr/include/objc/Object.h</p><p>/Xcode3/SDKs/MacOSX10.6.sdk/usr/X11/include/X11/Object.h</p><p>/Xcode3/SDKs/MacOSX10.6.sdk/usr/include/objc/Object.h</p><p>/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/usr/include/objc/Object.h</p><p>/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/include/objc/Object.h</p><p>/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/include/objc/Object.h</p><p>/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/objc/Object.h</p><p>/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/include/objc/Object.h</p><p>/Xcode4/SDKs/MacOSX10.6.sdk/usr/X11/include/X11/Object.h</p><p>/Xcode4/SDKs/MacOSX10.6.sdk/usr/include/objc/Object.h</p><p>/usr/X11/include/X11/Object.h</p><p>/usr/include/objc/Object.h[/code]</p><p></p><p>A possible fix may be this.</p><p>[code]#include "/usr/include/objc/Object.h"[/code]</p><p></p><p>Another fix is to use the include flag such as this in cc command.</p><p>[code]gcc -I /usr/include/objc -lobjc Greater.m -o Greater[/code]</p><p></p><p>Unfortunately neither tells us why bikka is having the problem.</p><p></p><p>I'm thinking there is also a shell variable that can be set, but am not sure.</p></blockquote><p></p>
[QUOTE="xstep, post: 1241234, member: 11647"] The following find command shows Object.h in many many places. As you can see by the list, I have both Xcode 3 & 4 installed, each with their own copies. [code]find / -name "Object.h" -print[/code] [code]/Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/usr/include/objc/Object.h /Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/include/objc/Object.h /Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/include/objc/Object.h /Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/objc/Object.h /Xcode3/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/include/objc/Object.h /Xcode3/SDKs/MacOSX10.5.sdk/usr/X11/include/X11/Object.h /Xcode3/SDKs/MacOSX10.5.sdk/usr/include/objc/Object.h /Xcode3/SDKs/MacOSX10.6.sdk/usr/X11/include/X11/Object.h /Xcode3/SDKs/MacOSX10.6.sdk/usr/include/objc/Object.h /Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/usr/include/objc/Object.h /Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/include/objc/Object.h /Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/include/objc/Object.h /Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/objc/Object.h /Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/include/objc/Object.h /Xcode4/SDKs/MacOSX10.6.sdk/usr/X11/include/X11/Object.h /Xcode4/SDKs/MacOSX10.6.sdk/usr/include/objc/Object.h /usr/X11/include/X11/Object.h /usr/include/objc/Object.h[/code] A possible fix may be this. [code]#include "/usr/include/objc/Object.h"[/code] Another fix is to use the include flag such as this in cc command. [code]gcc -I /usr/include/objc -lobjc Greater.m -o Greater[/code] Unfortunately neither tells us why bikka is having the problem. I'm thinking there is also a shell variable that can be set, but am not sure. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Objective-C help
Top