On Thu, 7 Feb 2002, Francis Bouchard wrote:
There is a bug in the Kernel headers:
1- create a new kext project (not IOKit).
2- this will not compile:
<snip>
#include <sys/systm.h> // SWAPPED THE INCLUDES
#include <IOKit/IOLib.h> // SWAPPED THE INCLUDES
Include order can be important, but it shouldn't be for that. One possibility is that cpp precomp is barfing. I've seen that a lot for non-I/O Kit KEXTs. I'm planning to file a bug on that myself when I have a minute. Try adding -no-cpp-precomp to your compile options and see if it works correctly with the headers in the original order. If it does, shout, and I'll make sure I file the PB bug sooner rather than later. Later, David --------------------------------------------------------------------- Check out my weekly web comic: http://www.techmagazine.org _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.