On 15. tra. 2011., at 14:59, "Nicola Pero" <[email protected] > wrote:


I currently have GNUstep installed, but I don't think there's a conflict at
the moment. I have GCC 4.4.5 installed, and clang 1.1.

You seem to have stumbled upon an untested compiler/runtime combination (clang +
runtime from GCC 4.4.5).

Lucky me :-)


Compiling file runtime.c ...
In file included from runtime.c:34:
/usr/lib/gcc/i486-linux-gnu/4.4.5/include/objc/objc.h:42:24: error:
    redefinition of typedef 'BOOL' is invalid in C
[-Wtypedef-redefinition]
typedef unsigned char  BOOL;
                     ^
In file included from runtime.c:1:
../../Headers/ObjectiveC2/runtime.h:71:23: note: previous definition is here
typedef unsigned char BOOL;
                     ^
This seems to be a bug ... the "typedef unsigned char BOOL;" in ObjectiveC2/runtime.h is protected by #ifndef __objc_INCLUDE_GNU, but since objc/objc.h is included *after* ObjectiveC2/runtime.h, __objc_INCLUDE_GNU is not #defined yet, and the protection does
not work.

Thanks


I could submit a patch. Would just including objc/objc.h in ObjectiveC2runtime.h be correct?

Regards,

Ivan Vučica
via phone
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to