URL:
<http://savannah.gnu.org/bugs/?31237>
Summary: Cocoa.h redefinition problems
Project: GNUstep
Submitted by: rmottola
Submitted on: Sun 03 Oct 2010 09:41:53 PM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When Cocoa.h is included on OpenBSD with gcc 2.95, the following error
happens:
Compiling file VEAppController.m ...
In file included from
/usr/GNUstep/Local/Library/Headers/WebKit/WebPlugin.h:25,
from /usr/GNUstep/Local/Library/Headers/WebKit/WebKit.h:35,
from VEDocument.h:27,
from VEAppController.m:27:
/usr/GNUstep/System/Library/Headers/Cocoa/Cocoa.h:42: warning: `false'
redefined
/usr/include/stdbool.h:26: warning: this is the location of the previous
definition
/usr/GNUstep/System/Library/Headers/Cocoa/Cocoa.h:43: warning: `true'
redefined
/usr/include/stdbool.h:27: warning: this is the location of the previous
definition
In file included from
/usr/GNUstep/Local/Library/Headers/WebKit/WebPlugin.h:25,
from /usr/GNUstep/Local/Library/Headers/WebKit/WebKit.h:35,
from VEDocument.h:27,
from VEAppController.m:27:
/usr/GNUstep/System/Library/Headers/Cocoa/Cocoa.h:41: conflicting types for
`_Bool'
/usr/include/stdbool.h:23: previous declaration of `_Bool'
A similar error happens for other files that include it. I cannot reproduce
this with FreeBSD/gcc 4.2
Furthermore, if Foundation and AppKit are included instead of Cocoa, the
problem goes away.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31237>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep