[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #31237] Cocoa.h redefinition problems
From: |
Riccardo mottola |
Subject: |
[bug #31237] Cocoa.h redefinition problems |
Date: |
Sun, 03 Oct 2010 21:41:54 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 |
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 #31237] Cocoa.h redefinition problems,
Riccardo mottola <=