[GCC-XML] Snow Leopard and CoreFoundation.h doesn't parse
Jason Roelofs
jameskilton at gmail.com
Sat Jul 10 14:18:08 EDT 2010
I'm not sure if this is a bug or just something that needs to be implemented, but trying to parse code that uses Cocoa / Carbon framework headers fails with some really weird errors. For example:
#include <CoreFoundation/CoreFoundation.h>
int main(int argc, const char *argv[])
{
return 0;
}
$ gccxml -F/System/Library/Frameworks/ gccxml_test.cpp
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43,
from gccxml_test.cpp:1:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147: error: format string argument not a string type
I don't know what Apple's gcc has different, but I've run into quite a few people who have had this issue, not necessarily with gccxml but with non-apple gcc compilers in general. Has anyone here run into this and come up with a solution other than patching the code I'm parsing to not require these files?
Jason
More information about the gccxml
mailing list