discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Compiling GNUstep under Debian


From: Nicola Pero
Subject: RE: Compiling GNUstep under Debian
Date: Fri, 15 Apr 2011 14:59:30 +0200 (CEST)

> 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).

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]