Compile error while compiling with MacOSX.SDK

When I was compiling with MacOSX.SDK, these error occurred

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/hfs/hfs_format.h:796:20: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
        char            reserved[JIB_RESERVED_SIZE];
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/hfs/hfs_format.h:787:61: note: expanded from macro 'JIB_RESERVED_SIZE'
#define JIB_RESERVED_SIZE  ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
                                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/device/device_types.h:89:33: note: 'io_string_t' declared here
typedef char                    io_string_t[512];

I searched on the Internet and found the similar problem, it seems that there is something wrong with uuid.h. Actually, I do have this head file in my project directory.

Anybody encountered with the same problem ? How to solve this problem?

Answered by DTS Engineer in 801953022

It’s hard to offer advice given the limited amount of info you’ve shared. As a first step, I recommend that you try to compile a trivial test program. That’ll tell you whether this problem affects all compilation work, and thus is a problem with your tools setup, or whether it only affects the specific code you’re trying to build.

I talk more about this idea in Investigating Third-Party IDE Integration Problems.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

You can edit your post within an hour of posting it. If you're outside that window, just add a reply to the original post.

Don't create duplicate posts.

It’s hard to offer advice given the limited amount of info you’ve shared. As a first step, I recommend that you try to compile a trivial test program. That’ll tell you whether this problem affects all compilation work, and thus is a problem with your tools setup, or whether it only affects the specific code you’re trying to build.

I talk more about this idea in Investigating Third-Party IDE Integration Problems.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Compile error while compiling with MacOSX.SDK
 
 
Q