• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: duplicated headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: duplicated headers


  • Subject: Re: duplicated headers
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 13 Dec 2006 08:55:53 -0800

On Dec 13, 2006, at 5:01 AM, Denis Osadchy wrote:

Some header files included by our projects are duplicated in many places:

1. in /Developer/Headers/FlatCarbon

2. in /Developer/SDKs/MacOSX___/Developer/Headers/FlatCarbon

3. /Developer/SDKs/MacOSX___/System/Library/Frameworks/CoreServices......./Headers


Some files in these locations have different content. For example

OpenTransport.h.


Our main problem now that we are trying to compile with carbon, but

hardly understand which one of these files should be used.


I have not found information about mac source tree yet. Please write

where such information can be found.


First of all, you should avoid headers like OpenTransport.h.   There are functions that have been carried over for the convenience of programmers bringing code from Mac OS 9 (pre-1998).  The FlatCarbon directories (both in the native system and in the SDK) have both the older, deprecated headers and symlinks to modern versions.  If you are starting to program on Mac OS X, you should avoid these directories.

The correct procedure for using headers is this:

1) Add /System/Library/Frameworks/Carbon.framework to your product.
2) #include <Carbon/Carbon.h> in your source files.
3) Set your SDK to the 10.4u SDK, so the actual framework used is the one in /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework, which will allow you to build Universal Binaries for both PowerPC and Intel.

Chris
 _______________________________________________
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

References: 
 >duplicated headers (From: Denis Osadchy <email@hidden>)

  • Prev by Date: Re: 4 vs 8 alignment
  • Next by Date: Re: 4 vs 8 alignment
  • Previous by thread: duplicated headers
  • Next by thread: Re: glReadPixels and glDrawPixels optimized
  • Index(es):
    • Date
    • Thread