obj-c++ namespaces
obj-c++ namespaces
- Subject: obj-c++ namespaces
- From: "Ender Wiggins" <email@hidden>
- Date: Fri, 11 Aug 2006 23:38:12 -0500
Hey all,
I'm getting the following errors while compiling obj-c++ files and
don't quite know what it means other than maybe somehow I can't use
the namespace from within the class interface, but then I just get
more questions on how it's supposed to be done.
ABCController.h:20: error: using-declaration for non-member at class scope
ABCController.h:20: confused by earlier errors, bailing out
I've tried forward declarations and so many combinations but nothing
seems to help. I am linking these files against a c++ *.dylib that has
the namespaces in it.
This error appears in the commented line below ...
--- *.h
#include "abc.h"
using namespace ABC;
@interface MyController : NSObject
{
ABC::Pattern *pattern;
ABC::Network *network; // Error appears on this line when compiling
}
- (void)justDoit;
@end
// *.mm
#include "abc.h"
@implementation MyController
- (void)justDoIt
{
NSMutableArray *dataPatterns;
...
network = new ABC::Network(1, 2);
...
pattern = (ABC::Pattern *) [[dataPatterns objectAtIndex:i)] pointerValue];
}
@end
Anyone have an idea what's going on here?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden