|
From: | Ivan Vučica |
Subject: | Re: Compiling GNUstep under Debian |
Date: | Fri, 15 Apr 2011 15:14:20 +0200 |
I currently have GNUstep installed, but I don't think there's a conflict atthe 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 heretypedef 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 doesnot work. Thanks
I could submit a patch. Would just including objc/objc.h in ObjectiveC2runtime.h be correct?
Regards, Ivan Vučica via phone
[Prev in Thread] | Current Thread | [Next in Thread] |