--On Monday, March 31, 2003 10:18 AM -0500 "Michael D. Crawford"
<cra...@go...> wrote:
> That is, something like #include <IOKit/IOTypes.h> won't compile because
> IOTypes.h is not in a folder named IOKit - it's in a folder named
> Headers, and that's in a folder named IOKit.framework.
>
> When you build a Mach O application, the compiler is hacked to process
> the #include file the way you need, but not when you build a CFM
> application.
>
> The approach I have taken is to copy the headers out of the framework
> folders and put them in my project folders, nested in a folder with the
> right name. So I can create folders where #include <IOKit/IOTypes.h>
> will work. But it's a horrible hack, takes up lots of disk space and
> makes me really unhappy.
There's no need to copy the files. You can use symlinks/aliases, or fake
headers that include the original in its real location: e.g.
#include <IOKit.framework/Headers/IOTypes.h>
I hope this helps.
Josh
|