FROM : Ender Wiggins
DATE : Sat Aug 12 06:38:12 2006
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?
DATE : Sat Aug 12 06:38:12 2006
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?
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

