[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
-DSTRICT_OPENSTEP not working.
From: |
Pascal Bourguignon |
Subject: |
-DSTRICT_OPENSTEP not working. |
Date: |
Sun, 10 Mar 2002 07:02:23 +0100 (CET) |
Hello,
It still is not possible to compile GNUstep programs with
-DSTRICT_OPENSTEP=1. We get the following errors (don't mind g++, it
compiles correctly ObjC programs without -DSTRICT_OPENSTEP=1).
STRICT_OPENSTEP should not prevent inclusion of GS headers needed to
compile OpenStep headers. It should only prevent the declaration of
non OpenStep stuff in the OpenStep headers. Of course any GS*
declaration is not OpenStep and can be declared even in
STRICT_OPENSTEP headers. They are private declarations...
I only import <Foundation/Foundation.h> and <AppKit/AppKit.h>.
------------------------------------------------------------------------
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import <MapTreeTest.h>
#import <NSObjectTracer.h>
static const char rcsid[]="$Id: MapTreeTest_main.m,v 1.6 2002/01/31
06:39:31 mppjb Exp $";
int main(int argc, char *argv[])
{
NSAutoreleasePool* pool=[NSAutoreleasePool new];
//[NSObjectTracer initialize];
[NSObject enableDoubleReleaseCheck: NO];
// (void)initialize_gnustep_backend();
(void)[[MapTreeTest alloc]init];
[NSApp run];
[pool release];
return(0);
}//main;
------------------------------------------------------------------------
g++ MapTreeTest_main.m -c \
-DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1
-DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -DGSWARN -DGSDIAGNOSE -g
-Wno-import -g -Wall -DUNIX -DSTRICT_OPENSTEP=1 -fgnu-runtime -I.
-IUtilities.subproj -I/local/users/pascal/firms/mappy/maptree/install
-I/local/users/pascal/firms/mappy/maptree/install/maptree/interfaces -I.
-fgnu-runtime -I/local/gnustep/System/Headers
-I/local/gnustep/System/Headers/libxml -I/local/gnustep/System/Headers
-I/home/pascal/GNUstep/Headers/gnustep -I/local/gnustep/Local/Headers/gnustep
-I/local/gnustep/Network/Headers/gnustep
-I/local/gnustep/System/Headers/gnustep
-I/home/pascal/GNUstep/Headers/ix86/linux-gnu -I/home/pascal/GNUstep/Headers
-I/local/gnustep/Local/Headers/ix86/linux-gnu -I/local/gnustep/Local/Headers
-I/local/gnustep/Network/Headers/ix86/linux-gnu
-I/local/gnustep/Network/Headers -I/local/gnustep/System/Headers/ix86/linux-gnu
-I/local/gnustep/System/Headers \
-o shared_obj/ix86/linux-gnu/gnu-gnu-gnu/MapTreeTest_main.o
In file included from
/local/gnustep/System/Headers/Foundation/NSConnection.h:32,
from /local/gnustep/System/Headers/Foundation/Foundation.h:44,
from MapTreeTest_main.m:1:
/local/gnustep/System/Headers/Foundation/NSRunLoop.h:35: Cannot find protocol
declaration for `GCFinalization'
In file included from /local/gnustep/System/Headers/Foundation/Foundation.h:44,
from MapTreeTest_main.m:1:
/local/gnustep/System/Headers/Foundation/NSConnection.h:153: Cannot find
protocol declaration for `GCFinalization'
In file included from /local/gnustep/System/Headers/Foundation/Foundation.h:50,
from MapTreeTest_main.m:1:
/local/gnustep/System/Headers/Foundation/NSDistantObject.h:60: Cannot find
protocol declaration for `GCFinalization'
In file included from /local/gnustep/System/Headers/Foundation/Foundation.h:63,
from MapTreeTest_main.m:1:
/local/gnustep/System/Headers/Foundation/NSLock.h:54: Cannot find protocol
declaration for `GCFinalization'
/local/gnustep/System/Headers/Foundation/NSLock.h:72: Cannot find protocol
declaration for `GCFinalization'
/local/gnustep/System/Headers/Foundation/NSLock.h:118: Cannot find protocol
declaration for `GCFinalization'
In file included from /local/gnustep/System/Headers/Foundation/Foundation.h:66,
from MapTreeTest_main.m:1:
/local/gnustep/System/Headers/Foundation/NSNotification.h:60: Cannot find
protocol declaration for `GCFinalization'
In file included from /local/gnustep/System/Headers/Foundation/Foundation.h:69,
from MapTreeTest_main.m:1:
/local/gnustep/System/Headers/Foundation/NSNumberFormatter.h:41: parse error
before `NSDecimalNumberHandler'
/local/gnustep/System/Headers/Foundation/NSNumberFormatter.h:51: Cannot find
interface declaration for `NSFormatter', superclass of `NSNumberFormatter'
Without -DSTRICT_OPENSTEP=1:
g++ MapTreeTest_main.m -c \
-DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1
-DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -DGSWARN -DGSDIAGNOSE -g
-Wno-import -g -Wall -DUNIX -fgnu-runtime -I. -IUtilities.subproj
-I/home/pascal/firms/mappy/maptree/install
-I/home/pascal/firms/mappy/maptree/install/maptree/interfaces -I. -fgnu-runtime
-I/local/gnustep/System/Headers -I/local/gnustep/System/Headers/libxml
-I/local/gnustep/System/Headers -I/home/pascal/GNUstep/Headers/gnustep
-I/local/gnustep/Local/Headers/gnustep -I/local/gnustep/Network/Headers/gnustep
-I/local/gnustep/System/Headers/gnustep
-I/home/pascal/GNUstep/Headers/ix86/linux-gnu -I/home/pascal/GNUstep/Headers
-I/local/gnustep/Local/Headers/ix86/linux-gnu -I/local/gnustep/Local/Headers
-I/local/gnustep/Network/Headers/ix86/linux-gnu
-I/local/gnustep/Network/Headers -I/local/gnustep/System/Headers/ix86/linux-gnu
-I/local/gnustep/System/Headers \
-o shared_obj/ix86/linux-gnu/gnu-gnu-gnu/MapTreeTest_main.o
g++ MapTreeTest.m -c \
-DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1
-DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -DGSWARN -DGSDIAGNOSE -g
-Wno-import -g -Wall -DUNIX -fgnu-runtime -I. -IUtilities.subproj
-I/home/pascal/firms/mappy/maptree/install
-I/home/pascal/firms/mappy/maptree/install/maptree/interfaces -I. -fgnu-runtime
-I/local/gnustep/System/Headers -I/local/gnustep/System/Headers/libxml
-I/local/gnustep/System/Headers -I/home/pascal/GNUstep/Headers/gnustep
-I/local/gnustep/Local/Headers/gnustep -I/local/gnustep/Network/Headers/gnustep
-I/local/gnustep/System/Headers/gnustep
-I/home/pascal/GNUstep/Headers/ix86/linux-gnu -I/home/pascal/GNUstep/Headers
-I/local/gnustep/Local/Headers/ix86/linux-gnu -I/local/gnustep/Local/Headers
-I/local/gnustep/Network/Headers/ix86/linux-gnu
-I/local/gnustep/Network/Headers -I/local/gnustep/System/Headers/ix86/linux-gnu
-I/local/gnustep/System/Headers \
...
--
__Pascal_Bourguignon__ (o_ Software patents are endangering
() ASCII ribbon against html email //\ the computer industry all around
/\ and Microsoft attachments. V_/ the world http://lpf.ai.mit.edu/
1962:DO20I=1.100 2001:my($f)=`fortune`; http://petition.eurolinux.org/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d? s++:++(+++)>++ a C+++ UB+++L++++$S+X++++>$ P- L+++ E++ W++
N++ o-- K- w------ O- M++$ V PS+E++ Y++ PGP++ t+ 5? X+ R !tv b++(+)
DI+++ D++ G++ e+++ h+(++) r? y---? UF++++
------END GEEK CODE BLOCK------
- -DSTRICT_OPENSTEP not working.,
Pascal Bourguignon <=