discuss-gnustep
[Top][All Lists]
Advanced

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

Is GNUstep Objective-C++ safe ?


From: Yen-Ju Chen
Subject: Is GNUstep Objective-C++ safe ?
Date: Sat, 27 May 2006 22:21:40 -0700

Hi,

 I have GNUstep on mac through DarwinPorts.
 It uses gcc-4.1.
 So I start to try some Objective-C++ code and receive this error:

/opt/local/GNUstep/System/Library/Headers/Foundation/NSGeometry.h:121:
error: use of enum '_NSRectEdge' without previous declaration
/opt/local/GNUstep/System/Library/Headers/Foundation/NSGeometry.h:121:
error: invalid type in declaration before ';' token
/opt/local/GNUstep/System/Library/Headers/Foundation/NSGeometry.h:131:
error: uninitialized const 'NSZeroPoint'
/opt/local/GNUstep/System/Library/Headers/Foundation/NSGeometry.h:133:
error: uninitialized const 'NSZeroRect'
/opt/local/GNUstep/System/Library/Headers/Foundation/NSGeometry.h:135:
error: uninitialized const 'NSZeroSize'

 The same code work with Cocoa/GNUstep-make.
 And the test code is an empty main.mm with xxx_OBJCC_FILES.
 Does anyone try Objective-C++ with GNUstep ?
 I guess it may need some extern C { ... }

 Yen-Ju




reply via email to

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