W
Will Oram
Normally I use PB for Cocoa, but now I'm using it for a school project.
I have an implementation file, a header, and a main cpp file.
I have a class defined in the header, which I will simplify to the
basics for viewing audiences:
class SomeClass {
public:
SomeClass(); //constructor
};
...with function members defined in the implementation:
SomeClass::SomeClass() {
cout << "hello\n";
}
Trouble is, PB complains that I've already defined SomeClass elsewhere.
It doesn't *show* me where, though.
I've tried this in CodeWarrior too, with similar complaints. Now I'm
thinking it's my fault and not a compiler quirk. But I essentially
copied the above out of my textbook!
Any thoughts? Thanks.
I have an implementation file, a header, and a main cpp file.
I have a class defined in the header, which I will simplify to the
basics for viewing audiences:
class SomeClass {
public:
SomeClass(); //constructor
};
...with function members defined in the implementation:
SomeClass::SomeClass() {
cout << "hello\n";
}
Trouble is, PB complains that I've already defined SomeClass elsewhere.
It doesn't *show* me where, though.
I've tried this in CodeWarrior too, with similar complaints. Now I'm
thinking it's my fault and not a compiler quirk. But I essentially
copied the above out of my textbook!
Any thoughts? Thanks.