Re: Include order in XCode 2.0
Re: Include order in XCode 2.0
- Subject: Re: Include order in XCode 2.0
- From: Jim Ingham <email@hidden>
- Date: Wed, 18 May 2005 11:52:04 -0700
This is a Tiger issue, not an Xcode issue. Tiger includes an Aqua
native version of Tk, Panther did not. The headers for this are in /
System/Library/Frameworks. However, if you are NOT using the
framework include form, i.e. if you are using
#include "tk.h"
rather than:
#include <Tk/tk.h>
then you shouldn't be picking up the ones in the Tk framework. So
you should check to make sure you aren't using the Framework form of
the headers if you don't want to find the Aqua version of the
headers. I guess somebody could also be doing:
-I/System/Library/Frameworks/Tk.framework/Headers
That would also not be a good idea if you want to use the X11 version
of the Tk headers.
Note: tk.h is NOT a part of the X11 headers, but on Mac OS X you can
EITHER build the Aqua native Tk which links against Carbon, OR the
X11 version which links against the xlib, etc... We've actually made
sure that both versions of Tk can co-exist peacefully on the same
Tiger install. So you just have to make sure your includes or -I's
aren't inadvertently picking up the version you don't intend to link to.
Jim
On May 18, 2005, at 9:59 AM, Dieter Oberkofler wrote:
I'm having problems when compiling a large project that includes
headers (e.g. tk.h seems to be part of X11 headers) already
existing somewhere in the frameworks of XCode 2.0 that did not
exist in XCode 1.5. Is there a way to tell the compiler in what
order the includes folders are searched for?
Thank you,
-Dieter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden